/external/chromium_org/chrome/installer/util/ |
registry_test_data.h | 29 bool Initialize(HKEY root_key, const wchar_t* base_path); 36 void ExpectMatchesNonEmptyKey(HKEY root_key, const wchar_t* path); 38 HKEY root_key() const { return root_key_; } function in class:RegistryTestData 45 static void ExpectEmptyKey(HKEY root_key, const wchar_t* path); 48 static bool DeleteKey(HKEY root_key, const wchar_t* path);
|
registry_key_backup_unittest.cc | 36 EXPECT_TRUE(backup.WriteTo(test_data_.root_key(), 39 EXPECT_FALSE(RegKey(test_data_.root_key(), destination_path_.c_str(), 49 EXPECT_TRUE(backup.Initialize(test_data_.root_key(), 52 EXPECT_TRUE(backup.WriteTo(test_data_.root_key(), 55 EXPECT_FALSE(RegKey(test_data_.root_key(), destination_path_.c_str(), 63 EXPECT_TRUE(backup.Initialize(test_data_.root_key(), 66 EXPECT_TRUE(backup.WriteTo(test_data_.root_key(), 69 test_data_.ExpectMatchesNonEmptyKey(test_data_.root_key(), 79 EXPECT_TRUE(backup.Initialize(test_data_.root_key(), 83 EXPECT_TRUE(other_backup.WriteTo(test_data_.root_key(), [all...] |
registry_test_data.cc | 22 bool RegistryTestData::DeleteKey(HKEY root_key, const wchar_t* path) { 24 if (root_key != NULL && path != NULL && *path != L'\0') { 25 result = RegKey(root_key, L"", KEY_QUERY_VALUE).DeleteKey(path); 47 bool RegistryTestData::Initialize(HKEY root_key, const wchar_t* base_path) { 53 if (DeleteKey(root_key, base_path)) { 55 root_key_ = root_key; 83 void RegistryTestData::ExpectMatchesNonEmptyKey(HKEY root_key, 87 EXPECT_EQ(ERROR_SUCCESS, key.Open(root_key, path, KEY_READ)); 98 void RegistryTestData::ExpectEmptyKey(HKEY root_key, const wchar_t* path) { 102 EXPECT_EQ(ERROR_SUCCESS, key.Open(root_key, path, KEY_READ)) [all...] |
delete_reg_key_work_item_unittest.cc | 41 test_data_.root_key(), key_path, WorkItem::kWow64Default)); 43 EXPECT_NE(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 47 EXPECT_NE(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 57 test_data_.root_key(), key_path, WorkItem::kWow64Default)); 59 EXPECT_NE(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 63 EXPECT_EQ(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 73 test_data_.root_key(), key_path, WorkItem::kWow64Default)); 75 EXPECT_NE(ERROR_SUCCESS, key.Open(test_data_.root_key(), key_path.c_str(), 79 test_data_.ExpectMatchesNonEmptyKey(test_data_.root_key(), key_path.c_str()); 89 EXPECT_EQ(ERROR_SUCCESS, key.Create(test_data_.root_key(), key_name.c_str() [all...] |
install_util.h | 115 // Deletes the registry key at path key_path under the key given by root_key. 116 static bool DeleteRegistryKey(HKEY root_key, 141 // Deletes the key |key_to_delete_path| under |root_key| iff the value 142 // |value_name| in the key |key_to_test_path| under |root_key| satisfies 146 HKEY root_key, 153 // Deletes the value |value_name| in the key |key_path| under |root_key| iff 157 HKEY root_key,
|
google_chrome_distribution.h | 66 virtual base::string16 GetDistributionData(HKEY root_key) OVERRIDE;
|
installation_state.cc | 54 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 61 if (key.Open(root_key, version_key.c_str(), kAccess) == ERROR_SUCCESS) { 86 if (key.Open(root_key, state_key.c_str(), kAccess) == ERROR_SUCCESS) { 127 key.Open(root_key, distribution->GetStateMediumKey().c_str(), kAccess) ==
|
install_util.cc | 442 bool InstallUtil::DeleteRegistryKey(HKEY root_key, 447 LONG result = target_key.Open(root_key, key_path.c_str(), 486 HKEY root_key, 492 DCHECK(root_key); 496 if (key.Open(root_key, key_to_test_path.c_str(), 501 delete_result = DeleteRegistryKey(root_key, 511 HKEY root_key, 516 DCHECK(root_key); 521 if (key.Open(root_key, key_path,
|
google_update_settings.cc | 151 HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 154 RegKey key(root_key, dist->GetStateKey().c_str(), 281 HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 286 root_key, reg_path.c_str(), KEY_SET_VALUE | KEY_WOW64_32KEY); 766 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 770 if (update_key.Open(root_key, google_update::kRegPathGoogleUpdate, 779 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 783 if (key.Open(root_key, 796 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 799 if (update_key.Open(root_key, 814 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 838 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local [all...] |
google_update_settings_unittest.cc | 1014 HKEY root_key() const { function in class:StatsState 1088 const HKEY root_key = stats_state.root_key(); local [all...] |
google_update_util.cc | 44 const HKEY root_key = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 47 if (update_key.Open(root_key, kRegPathGoogleUpdate, KEY_QUERY_VALUE) ==
|
/external/chromium_org/chrome/test/mini_installer/ |
registry_verifier.py | 13 def _RootKeyConstant(self, root_key): 21 if root_key not in root_key_mapping: 22 raise KeyError("Unknown root registry key '%s'" % root_key) 23 return root_key_mapping[root_key] 66 root_key, sub_key = key.split('\\', 1) 70 key_handle = _winreg.OpenKey(self._RootKeyConstant(root_key), sub_key, 0,
|
uninstall_chrome.py | 34 root_key = _winreg.HKEY_LOCAL_MACHINE 36 root_key = _winreg.HKEY_CURRENT_USER 41 key = _winreg.OpenKey(root_key, sub_key, 0, _winreg.KEY_QUERY_VALUE)
|
/external/chromium_org/chrome/browser/extensions/api/messaging/ |
native_messaging_test_util.cc | 45 HKEY root_key = user_level ? HKEY_CURRENT_USER : HKEY_LOCAL_MACHINE; local 49 root_key, key.c_str(), 77 HKEY root_key = user_level ? HKEY_CURRENT_USER : HKEY_LOCAL_MACHINE; local 78 registry_override_.OverrideRegistry(root_key);
|
native_process_launcher_win.cc | 30 bool GetManifestPathWithFlags(HKEY root_key, 36 if (key.Open(root_key, kNativeMessagingRegistryKey, 47 bool GetManifestPath(HKEY root_key, 52 root_key, KEY_WOW64_32KEY, host_name, result) || 54 root_key, KEY_WOW64_64KEY, host_name, result);
|
/external/chromium_org/base/win/ |
win_util.h | 85 // |root_key| could be HKCU or HKLM or the root of any user hive. 86 BASE_EXPORT bool AddCommandToAutoRun(HKEY root_key, const string16& name, 88 // Removes the command specified by |name| from the AutoRun key. |root_key| 90 BASE_EXPORT bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name); 92 // Reads the command specified by |name| from the AutoRun key. |root_key| 94 BASE_EXPORT bool ReadCommandFromAutoRun(HKEY root_key,
|
registry.h | 147 static LONG RegDelRecurse(HKEY root_key, 160 RegistryValueIterator(HKEY root_key, const wchar_t* folder_key); 201 RegistryKeyIterator(HKEY root_key, const wchar_t* folder_key);
|
win_util.cc | 185 bool AddCommandToAutoRun(HKEY root_key, const string16& name, 187 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_SET_VALUE); 192 bool RemoveCommandFromAutoRun(HKEY root_key, const string16& name) { 193 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_SET_VALUE); 197 bool ReadCommandFromAutoRun(HKEY root_key, 200 base::win::RegKey autorun_key(root_key, kAutoRunKeyPath, KEY_QUERY_VALUE);
|
registry.cc | 429 LONG RegKey::RegDelRecurse(HKEY root_key, 433 LONG result = RegDeleteKeyExWrapper(root_key, name.c_str(), access, 0); 439 root_key, name.c_str(), 0, KEY_ENUMERATE_SUB_KEYS | access, &target_key); 475 if (RegDelRecurse(root_key, subkey_name, access) != ERROR_SUCCESS) 482 result = RegDeleteKeyExWrapper(root_key, name.c_str(), access, 0); 489 RegistryValueIterator::RegistryValueIterator(HKEY root_key, 493 LONG result = RegOpenKeyEx(root_key, folder_key, 0, KEY_READ, &key_); 578 RegistryKeyIterator::RegistryKeyIterator(HKEY root_key, 580 LONG result = RegOpenKeyEx(root_key, folder_key, 0, KEY_READ, &key_);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_winreg.py | 81 def _write_test_data(self, root_key, CreateKey=CreateKey): 83 SetValue(root_key, test_key_name, REG_SZ, "Default value") 84 key = CreateKey(root_key, test_key_name) 121 def _read_test_data(self, root_key, OpenKey=OpenKey): 123 val = QueryValue(root_key, test_key_name) 127 key = OpenKey(root_key, test_key_name) 161 def _delete_test_data(self, root_key): 162 key = OpenKey(root_key, test_key_name, 0, KEY_ALL_ACCESS) 183 DeleteKey(root_key, test_key_name) 186 key = OpenKey(root_key, test_key_name [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_winreg.py | 81 def _write_test_data(self, root_key, CreateKey=CreateKey): 83 SetValue(root_key, test_key_name, REG_SZ, "Default value") 84 key = CreateKey(root_key, test_key_name) 121 def _read_test_data(self, root_key, OpenKey=OpenKey): 123 val = QueryValue(root_key, test_key_name) 127 key = OpenKey(root_key, test_key_name) 161 def _delete_test_data(self, root_key): 162 key = OpenKey(root_key, test_key_name, 0, KEY_ALL_ACCESS) 183 DeleteKey(root_key, test_key_name) 186 key = OpenKey(root_key, test_key_name [all...] |
/external/chromium_org/chrome/installer/setup/ |
install_worker.cc | 221 work_item_list->AddDeleteRegKeyWorkItem(installer_state.root_key(), 234 cmd.AddWorkItems(installer_state.root_key(), full_cmd_key, work_item_list); 245 installer_state.root_key(), 380 cmd.AddWorkItems(installer_state.root_key(), cmd_key, work_item_list); 437 HKEY reg_root = installer_state.root_key(); 676 HKEY reg_root = installer_state.root_key(); 870 const HKEY root_key = installer_state.root_key(); local 926 const HKEY root_key = installer_state.root_key(); local 988 const HKEY root_key = installer_state.root_key(); local 1039 HKEY root_key = installer_state.root_key(); local 1591 const HKEY root_key = installer_state.root_key(); local 1624 const HKEY root_key = installer_state.root_key(); local [all...] |
/external/chromium_org/chrome/installer/launcher_support/ |
chrome_launcher_support.cc | 38 HKEY root_key = (level == USER_LEVEL_INSTALLATION) ? local 44 if (reg_key.Open(root_key, subkey.c_str(),
|
/external/chromium_org/rlz/win/lib/ |
rlz_value_store_registry.cc | 136 bool DeleteKeyIfEmpty(HKEY root_key, const wchar_t* key_name) { 141 base::win::RegKey key(root_key, key_name, KEY_READ); 145 base::win::RegistryKeyIterator key_iter(root_key, key_name); 149 base::win::RegistryValueIterator value_iter(root_key, key_name); 155 base::win::RegKey key(root_key, L"", KEY_WRITE);
|
/external/chromium_org/chrome/installer/mini_installer/ |
mini_installer.cc | 132 bool ReadValueFromRegistry(HKEY root_key, const wchar_t *sub_key, 137 if (key.Open(root_key, sub_key, KEY_QUERY_VALUE) == ERROR_SUCCESS && 145 bool OpenClientStateKey(HKEY root_key, const wchar_t* app_guid, REGSAM access, 150 (key->Open(root_key, 164 const HKEY root_key = local 187 if (OpenClientStateKey(root_key, app_guid, key_access, &key)) { 205 if (!OpenClientStateKey(root_key, app_guid, key_access, &key)) 234 const HKEY root_key = system_level ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER; local 236 return OpenClientStateKey(root_key, app_guid, KEY_QUERY_VALUE, &key) && [all...] |