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

Unified Diff: chrome/installer/gcapi/gcapi_last_run_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.cc ('k') | chrome/installer/gcapi/gcapi_reactivation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/gcapi/gcapi_last_run_test.cc
diff --git a/chrome/installer/gcapi/gcapi_last_run_test.cc b/chrome/installer/gcapi/gcapi_last_run_test.cc
index 503bb5f8864d2d787f166fe28a9c522eaea4182c..8f07a3b55acde984eda38469bed78615dd2bc45f 100644
--- a/chrome/installer/gcapi/gcapi_last_run_test.cc
+++ b/chrome/installer/gcapi/gcapi_last_run_test.cc
@@ -36,7 +36,7 @@ class GCAPILastRunTest : public ::testing::Test {
reg_path += google_update::kChromeUpgradeCode;
RegKey client_state(HKEY_CURRENT_USER,
reg_path.c_str(),
- KEY_CREATE_SUB_KEY);
+ KEY_CREATE_SUB_KEY | KEY_WOW64_32KEY);
ASSERT_TRUE(client_state.Valid());
// Place a bogus "pv" value in the right places to make the last run
@@ -46,7 +46,7 @@ class GCAPILastRunTest : public ::testing::Test {
clients_path += google_update::kChromeUpgradeCode;
RegKey client_key(HKEY_CURRENT_USER,
clients_path.c_str(),
- KEY_CREATE_SUB_KEY | KEY_SET_VALUE);
+ KEY_CREATE_SUB_KEY | KEY_SET_VALUE | KEY_WOW64_32KEY);
ASSERT_TRUE(client_key.Valid());
client_key.WriteValue(L"pv", L"1.2.3.4");
}
@@ -61,7 +61,8 @@ class GCAPILastRunTest : public ::testing::Test {
path += L"\\";
path += google_update::kChromeUpgradeCode;
- RegKey client_state(HKEY_CURRENT_USER, path.c_str(), KEY_SET_VALUE);
+ RegKey client_state(
+ HKEY_CURRENT_USER, path.c_str(), KEY_SET_VALUE | KEY_WOW64_32KEY);
return (client_state.Valid() &&
client_state.WriteValue(
google_update::kRegLastRunTimeField,
« no previous file with comments | « chrome/installer/gcapi/gcapi.cc ('k') | chrome/installer/gcapi/gcapi_reactivation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698