Home
last modified time | relevance | path

Searched refs:policy_key (Results 1 – 17 of 17) sorted by relevance

/external/chromium_org/chrome_frame/test/
Dpolicy_settings_unittest.cc39 bool InitializePolicyKey(HKEY policy_root, RegKey* policy_key) { in InitializePolicyKey() argument
40 EXPECT_EQ(ERROR_SUCCESS, policy_key->Create(policy_root, in InitializePolicyKey()
42 return policy_key->Valid(); in InitializePolicyKey()
45 void WritePolicyList(RegKey* policy_key, in WritePolicyList() argument
48 DCHECK(policy_key); in WritePolicyList()
50 policy_key->DeleteKey(list_name); in WritePolicyList()
53 EXPECT_EQ(ERROR_SUCCESS, list_key.Create(policy_key->Handle(), list_name, in WritePolicyList()
65 RegKey policy_key; in SetRendererSettings() local
66 if (!InitializePolicyKey(policy_root, &policy_key)) in SetRendererSettings()
69 policy_key.WriteValue( in SetRendererSettings()
[all …]
/external/chromium/chrome/browser/policy/
Dconfiguration_policy_provider_delegate_win.cc92 RegKey policy_key(HKEY_LOCAL_MACHINE, kRegistrySubKey, KEY_READ); in GetRegistryPolicyString() local
94 if (ReadRegistryStringValue(&policy_key, name, result)) in GetRegistryPolicyString()
98 if (policy_key.Open(HKEY_CURRENT_USER, kRegistrySubKey, in GetRegistryPolicyString()
101 return ReadRegistryStringValue(&policy_key, name, result); in GetRegistryPolicyString()
108 RegKey policy_key; in GetRegistryPolicyStringList() local
109 if (policy_key.Open(HKEY_LOCAL_MACHINE, path.c_str(), KEY_READ) != in GetRegistryPolicyStringList()
112 if (policy_key.Open(HKEY_CURRENT_USER, path.c_str(), KEY_READ) != in GetRegistryPolicyStringList()
118 while (ReadRegistryStringValue(&policy_key, base::IntToString16(++index), in GetRegistryPolicyStringList()
137 RegKey policy_key(HKEY_LOCAL_MACHINE, kRegistrySubKey, KEY_READ); in GetRegistryPolicyInteger() local
138 if (policy_key.ReadValueDW(value_name.c_str(), &value) == ERROR_SUCCESS) { in GetRegistryPolicyInteger()
[all …]
Dconfig_dir_policy_provider_unittest.cc109 const char* policy_key, in ValueTestParams() argument
112 policy_key_(policy_key), in ValueTestParams()
134 const char* policy_key() const { return policy_key_; } in policy_key() function in policy::ValueTestParams
140 const char* policy_key) { in ForStringPolicy() argument
141 return ValueTestParams(type, policy_key, Value::CreateStringValue("test")); in ForStringPolicy()
145 const char* policy_key) { in ForBooleanPolicy() argument
146 return ValueTestParams(type, policy_key, Value::CreateBooleanValue(true)); in ForBooleanPolicy()
150 const char* policy_key) { in ForIntegerPolicy() argument
151 return ValueTestParams(type, policy_key, Value::CreateIntegerValue(42)); in ForIntegerPolicy()
155 const char* policy_key) { in ForListPolicy() argument
[all …]
/external/chromium_org/remoting/host/policy_hack/
Dpolicy_watcher_win.cc121 RegKey policy_key(HKEY_LOCAL_MACHINE, kRegistrySubKey, KEY_READ); in GetRegistryPolicyString() local
122 if (policy_key.ReadValue(value_name_wide.c_str(), &value) == in GetRegistryPolicyString()
128 if (policy_key.Open(HKEY_CURRENT_USER, kRegistrySubKey, KEY_READ) == in GetRegistryPolicyString()
130 if (policy_key.ReadValue(value_name_wide.c_str(), &value) == in GetRegistryPolicyString()
144 RegKey policy_key(HKEY_LOCAL_MACHINE, kRegistrySubKey, KEY_READ); in GetRegistryPolicyInteger() local
145 if (policy_key.ReadValueDW(value_name_wide.c_str(), &value) == in GetRegistryPolicyInteger()
151 if (policy_key.Open(HKEY_CURRENT_USER, kRegistrySubKey, KEY_READ) == in GetRegistryPolicyInteger()
153 if (policy_key.ReadValueDW(value_name_wide.c_str(), &value) == in GetRegistryPolicyInteger()
Dpolicy_watcher_mac.mm51 base::ScopedCFTypeRef<CFStringRef> policy_key(
56 bool value = CFPreferencesGetAppBooleanValue(policy_key,
66 CFPreferencesCopyAppValue(policy_key, policy_bundle_id));
/external/chromium_org/chrome/browser/policy/test/
Dpolicy_testserver.py171 policy_key = self.GetUniqueParam('key')
172 if not policy_key:
174 data = self.server.ReadPolicyDataFromDataDir(policy_key)
176 return (404, 'Policy not found for ' + policy_key)
220 def CreatePolicyForExternalPolicyData(self, policy_key): argument
234 data = self.server.ReadPolicyDataFromDataDir(policy_key)
237 self.server.GetBaseURL(), 'externalpolicydata?key=%s' % policy_key)
542 policy_key = msg.policy_type
544 policy_key += '/' + msg.settings_entity_id
550 payload = self.server.ReadPolicyFromDataDir(policy_key, settings)
[all …]
/external/chromium_org/chrome/browser/chromeos/policy/
Dnetwork_configuration_updater.cc59 std::string policy_key, in NetworkConfigurationUpdater() argument
66 policy_key_(policy_key), in NetworkConfigurationUpdater()
Dnetwork_configuration_updater.h61 std::string policy_key,
/external/chromium_org/chrome/browser/policy/
Dpolicy_path_parser_win.cc27 base::win::RegKey policy_key(hive, in LoadUserDataDirPolicyFromRegistry() local
30 if (policy_key.ReadValue(key_name.c_str(), &value) == ERROR_SUCCESS) { in LoadUserDataDirPolicyFromRegistry()
/external/chromium_org/chromeos/dbus/
Dsession_manager_client.h149 const std::string& policy_key,
Dfake_session_manager_client.h55 const std::string& policy_key,
Dsession_manager_client.cc586 const std::string& policy_key, in StorePolicyForUser() argument
588 if (policy_key.empty()) { in StorePolicyForUser()
613 key_path, policy_key), in StorePolicyForUser()
Dfake_session_manager_client.cc119 const std::string& policy_key, in StorePolicyForUser() argument
/external/chromium_org/chrome/installer/util/
Dgoogle_update_settings.cc543 RegKey policy_key; in GetAppUpdatePolicy() local
546 if (policy_key.Open(HKEY_LOCAL_MACHINE, kGoogleUpdatePoliciesKey, in GetAppUpdatePolicy()
557 found_override = (policy_key.ReadValueDW(app_update_override.c_str(), in GetAppUpdatePolicy()
563 policy_key.ReadValueDW(kGoogleUpdateUpdatePolicyValue, in GetAppUpdatePolicy()
/external/chromium_org/chrome/browser/chromeos/settings/
Ddevice_settings_test_helper.h110 const std::string& policy_key,
Ddevice_settings_test_helper.cc164 const std::string& policy_key, in StorePolicyForUser() argument
/external/chromium/net/tools/testserver/
Ddevice_management.py284 setting.policy_key = 'chrome-policy'