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

Unified Diff: chrome/installer/util/install_util.cc

Issue 297233010: Revert 273108 "Omaha configuration parameters now use Wow6432Nod..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2017/src/
Patch Set: 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/util/helper.cc ('k') | chrome/installer/util/installation_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/install_util.cc
===================================================================
--- chrome/installer/util/install_util.cc (revision 273136)
+++ chrome/installer/util/install_util.cc (working copy)
@@ -221,9 +221,8 @@
DCHECK(dist);
RegKey key;
HKEY reg_root = (system_install) ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
- LONG result = key.Open(reg_root,
- dist->GetVersionKey().c_str(),
- KEY_QUERY_VALUE | KEY_WOW64_32KEY);
+ LONG result = key.Open(reg_root, dist->GetVersionKey().c_str(),
+ KEY_QUERY_VALUE);
base::string16 version_str;
if (result == ERROR_SUCCESS)
@@ -247,9 +246,8 @@
DCHECK(dist);
RegKey key;
HKEY reg_root = (system_install) ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
- LONG result = key.Open(reg_root,
- dist->GetVersionKey().c_str(),
- KEY_QUERY_VALUE | KEY_WOW64_32KEY);
+ LONG result =
+ key.Open(reg_root, dist->GetVersionKey().c_str(), KEY_QUERY_VALUE);
base::string16 version_str;
if (result == ERROR_SUCCESS)
@@ -288,16 +286,17 @@
DCHECK(install_list);
const HKEY root = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
DWORD installer_result = (GetInstallReturnCode(status) == 0) ? 0 : 1;
- install_list->AddCreateRegKeyWorkItem(root, state_key, KEY_WOW64_32KEY);
+ install_list->AddCreateRegKeyWorkItem(
+ root, state_key, WorkItem::kWow64Default);
install_list->AddSetRegValueWorkItem(root,
state_key,
- KEY_WOW64_32KEY,
+ WorkItem::kWow64Default,
installer::kInstallerResult,
installer_result,
true);
install_list->AddSetRegValueWorkItem(root,
state_key,
- KEY_WOW64_32KEY,
+ WorkItem::kWow64Default,
installer::kInstallerError,
static_cast<DWORD>(status),
true);
@@ -305,7 +304,7 @@
base::string16 msg = installer::GetLocalizedString(string_resource_id);
install_list->AddSetRegValueWorkItem(root,
state_key,
- KEY_WOW64_32KEY,
+ WorkItem::kWow64Default,
installer::kInstallerResultUIString,
msg,
true);
@@ -314,7 +313,7 @@
install_list->AddSetRegValueWorkItem(
root,
state_key,
- KEY_WOW64_32KEY,
+ WorkItem::kWow64Default,
installer::kInstallerSuccessLaunchCmdLine,
*launch_cmd,
true);
@@ -328,10 +327,8 @@
DCHECK_GT(installer::NUM_STAGES, stage);
const HKEY root = system_install ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
RegKey state_key;
- LONG result =
- state_key.Open(root,
- state_key_path.c_str(),
- KEY_QUERY_VALUE | KEY_SET_VALUE | KEY_WOW64_32KEY);
+ LONG result = state_key.Open(root, state_key_path.c_str(),
+ KEY_QUERY_VALUE | KEY_SET_VALUE);
if (result == ERROR_SUCCESS) {
if (stage == installer::NO_STAGE) {
result = state_key.DeleteValue(installer::kInstallerExtraCode1);
« no previous file with comments | « chrome/installer/util/helper.cc ('k') | chrome/installer/util/installation_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698