Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(701)

Unified Diff: chrome/test/mini_installer_test/installer_test_util.cc

Issue 282363003: Add WOW64 support to the installer registry work items (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: add wow64 logic to installer_util. mini_installer tests. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/mini_installer_test/installer_test_util.cc
diff --git a/chrome/test/mini_installer_test/installer_test_util.cc b/chrome/test/mini_installer_test/installer_test_util.cc
index 76d1f97571eccc3eb6044326f91f99ce91e1e452..5b8869b12e935c3145a4ed315daf01a7dcf2f9d8 100644
--- a/chrome/test/mini_installer_test/installer_test_util.cc
+++ b/chrome/test/mini_installer_test/installer_test_util.cc
@@ -65,14 +65,16 @@ bool DeleteInstallDirectory(bool system_level,
}
bool DeleteRegistryKey(bool system_level,
- InstallationValidator::InstallationType type) {
+ InstallationValidator::InstallationType type,
+ REGSAM wow64_access) {
BrowserDistribution* dist = BrowserDistribution::GetSpecificDistribution(
ToBrowserDistributionType(type));
base::FilePath::StringType key(google_update::kRegPathClients);
key.push_back(base::FilePath::kSeparators[0]);
key.append(dist->GetAppGuid());
HKEY root = system_level ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
- return InstallUtil::DeleteRegistryKey(root, key);
+ LONG result = InstallUtil::DeleteRegistryKey(root, key, wow64_access);
+ return (result == ERROR_SUCCESS || result == ERROR_FILE_NOT_FOUND);
}
bool GetChromeInstallDirectory(bool system_level, base::FilePath* path) {

Powered by Google App Engine
This is Rietveld 408576698