Index: chrome/installer/util/app_command.cc |
diff --git a/chrome/installer/util/app_command.cc b/chrome/installer/util/app_command.cc |
index 78d931de5f110bfc7a1f507e14d512ee8d568865..0d6be906888589ab5d11b97c33324ab3c8bbcdcf 100644 |
--- a/chrome/installer/util/app_command.cc |
+++ b/chrome/installer/util/app_command.cc |
@@ -70,12 +70,14 @@ bool AppCommand::Initialize(const base::win::RegKey& key) { |
void AppCommand::AddWorkItems(HKEY predefined_root, |
const base::string16& command_path, |
WorkItemList* item_list) const { |
+ // Command_path is derived from GetRegCommandKey which always returns |
+ // value from GetVersionKey() which should be 32-bit hive. |
item_list->AddCreateRegKeyWorkItem( |
- predefined_root, command_path, WorkItem::kWow64Default) |
+ predefined_root, command_path, KEY_WOW64_32KEY) |
->set_log_message("creating AppCommand registry key"); |
item_list->AddSetRegValueWorkItem(predefined_root, |
command_path, |
- WorkItem::kWow64Default, |
+ KEY_WOW64_32KEY, |
google_update::kRegCommandLineField, |
command_line_, |
true) |
@@ -90,13 +92,13 @@ void AppCommand::AddWorkItems(HKEY predefined_root, |
if (var_data) { |
item_list->AddSetRegValueWorkItem(predefined_root, |
command_path, |
- WorkItem::kWow64Default, |
+ KEY_WOW64_32KEY, |
var_name, |
static_cast<DWORD>(1), |
true); |
} else { |
item_list->AddDeleteRegValueWorkItem( |
- predefined_root, command_path, WorkItem::kWow64Default, var_name); |
+ predefined_root, command_path, KEY_WOW64_32KEY, var_name); |
} |
} |
} |