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

Unified Diff: chrome/installer/gcapi/gcapi_reactivation_test.cc

Issue 300593002: Make omaha, gcapi and uninstall registry accesses use Wow6432Node on 64-bit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « chrome/installer/gcapi/gcapi_reactivation.cc ('k') | chrome/installer/mini_installer/mini_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/gcapi/gcapi_reactivation_test.cc
diff --git a/chrome/installer/gcapi/gcapi_reactivation_test.cc b/chrome/installer/gcapi/gcapi_reactivation_test.cc
index 144e61608f2e1c73874ade5eb75d391b5845db11..d36e03fb4e5f78837db848473b37eb6b2b99ddfb 100644
--- a/chrome/installer/gcapi/gcapi_reactivation_test.cc
+++ b/chrome/installer/gcapi/gcapi_reactivation_test.cc
@@ -31,7 +31,7 @@ class GCAPIReactivationTest : public ::testing::Test {
reg_path += google_update::kChromeUpgradeCode;
RegKey client_state(hive,
reg_path.c_str(),
- KEY_CREATE_SUB_KEY | KEY_SET_VALUE);
+ KEY_CREATE_SUB_KEY | KEY_SET_VALUE | KEY_WOW64_32KEY);
return (client_state.Valid() &&
client_state.WriteValue(
google_update::kRegVersionField, L"1.2.3.4") == ERROR_SUCCESS);
@@ -51,7 +51,7 @@ class GCAPIReactivationTest : public ::testing::Test {
path += L"\\";
path += google_update::kChromeUpgradeCode;
- RegKey client_state(hive, path.c_str(), KEY_SET_VALUE);
+ RegKey client_state(hive, path.c_str(), KEY_SET_VALUE | KEY_WOW64_32KEY);
return (client_state.Valid() &&
client_state.WriteValue(
google_update::kRegLastRunTimeField,
@@ -65,7 +65,7 @@ class GCAPIReactivationTest : public ::testing::Test {
RegKey client_state_key(hive,
client_state_path.c_str(),
- KEY_QUERY_VALUE);
+ KEY_QUERY_VALUE | KEY_WOW64_32KEY);
return client_state_key.Valid() &&
client_state_key.HasValue(google_update::kExperimentLabels);
}
@@ -79,7 +79,7 @@ class GCAPIReactivationTest : public ::testing::Test {
path += L"\\";
path += google_update::kChromeUpgradeCode;
- RegKey client_state(hive, path.c_str(), KEY_QUERY_VALUE);
+ RegKey client_state(hive, path.c_str(), KEY_QUERY_VALUE | KEY_WOW64_32KEY);
if (client_state.Valid()) {
std::wstring actual_brand;
if (client_state.ReadValue(google_update::kRegRLZReactivationBrandField,
« no previous file with comments | « chrome/installer/gcapi/gcapi_reactivation.cc ('k') | chrome/installer/mini_installer/mini_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698