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

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

Issue 282363003: Add WOW64 support to the installer registry work items (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: nits. fix call to DeleteRegistryKey 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/work_item_list.h ('k') | chrome/installer/util/work_item_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/work_item_list.cc
diff --git a/chrome/installer/util/work_item_list.cc b/chrome/installer/util/work_item_list.cc
index fd00773675b5c987c84354f42656f5a3e9dc2cac..5656ce172173c6056990f84f4570782aef250b2a 100644
--- a/chrome/installer/util/work_item_list.cc
+++ b/chrome/installer/util/work_item_list.cc
@@ -7,7 +7,6 @@
#include "base/files/file_path.h"
#include "base/logging.h"
#include "chrome/installer/util/callback_work_item.h"
-#include "chrome/installer/util/copy_reg_key_work_item.h"
#include "chrome/installer/util/copy_tree_work_item.h"
#include "chrome/installer/util/create_dir_work_item.h"
#include "chrome/installer/util/create_reg_key_work_item.h"
@@ -81,17 +80,6 @@ WorkItem* WorkItemList::AddCallbackWorkItem(
return item;
}
-WorkItem* WorkItemList::AddCopyRegKeyWorkItem(
- HKEY predefined_root,
- const std::wstring& source_key_path,
- const std::wstring& dest_key_path,
- CopyOverWriteOption overwrite_option) {
- WorkItem* item = WorkItem::CreateCopyRegKeyWorkItem(
- predefined_root, source_key_path, dest_key_path, overwrite_option);
- AddWorkItem(item);
- return item;
-}
-
WorkItem* WorkItemList::AddCopyTreeWorkItem(
const std::wstring& source_path,
const std::wstring& dest_path,
@@ -115,15 +103,19 @@ WorkItem* WorkItemList::AddCreateDirWorkItem(const base::FilePath& path) {
}
WorkItem* WorkItemList::AddCreateRegKeyWorkItem(HKEY predefined_root,
- const std::wstring& path) {
- WorkItem* item = WorkItem::CreateCreateRegKeyWorkItem(predefined_root, path);
+ const std::wstring& path,
+ REGSAM wow64_access) {
+ WorkItem* item =
+ WorkItem::CreateCreateRegKeyWorkItem(predefined_root, path, wow64_access);
AddWorkItem(item);
return item;
}
WorkItem* WorkItemList::AddDeleteRegKeyWorkItem(HKEY predefined_root,
- const std::wstring& path) {
- WorkItem* item = WorkItem::CreateDeleteRegKeyWorkItem(predefined_root, path);
+ const std::wstring& path,
+ REGSAM wow64_access) {
+ WorkItem* item =
+ WorkItem::CreateDeleteRegKeyWorkItem(predefined_root, path, wow64_access);
AddWorkItem(item);
return item;
}
@@ -131,9 +123,10 @@ WorkItem* WorkItemList::AddDeleteRegKeyWorkItem(HKEY predefined_root,
WorkItem* WorkItemList::AddDeleteRegValueWorkItem(
HKEY predefined_root,
const std::wstring& key_path,
+ REGSAM wow64_access,
const std::wstring& value_name) {
- WorkItem* item = WorkItem::CreateDeleteRegValueWorkItem(predefined_root,
- key_path, value_name);
+ WorkItem* item = WorkItem::CreateDeleteRegValueWorkItem(
+ predefined_root, key_path, wow64_access, value_name);
AddWorkItem(item);
return item;
}
@@ -166,14 +159,15 @@ WorkItem* WorkItemList::AddMoveTreeWorkItem(const std::wstring& source_path,
return item;
}
-WorkItem* WorkItemList::AddSetRegValueWorkItem(
- HKEY predefined_root,
- const std::wstring& key_path,
- const std::wstring& value_name,
- const std::wstring& value_data,
- bool overwrite) {
+WorkItem* WorkItemList::AddSetRegValueWorkItem(HKEY predefined_root,
+ const std::wstring& key_path,
+ REGSAM wow64_access,
+ const std::wstring& value_name,
+ const std::wstring& value_data,
+ bool overwrite) {
WorkItem* item = WorkItem::CreateSetRegValueWorkItem(predefined_root,
key_path,
+ wow64_access,
value_name,
value_data,
overwrite);
@@ -183,11 +177,13 @@ WorkItem* WorkItemList::AddSetRegValueWorkItem(
WorkItem* WorkItemList::AddSetRegValueWorkItem(HKEY predefined_root,
const std::wstring& key_path,
+ REGSAM wow64_access,
const std::wstring& value_name,
DWORD value_data,
bool overwrite) {
WorkItem* item = WorkItem::CreateSetRegValueWorkItem(predefined_root,
key_path,
+ wow64_access,
value_name,
value_data,
overwrite);
@@ -197,12 +193,17 @@ WorkItem* WorkItemList::AddSetRegValueWorkItem(HKEY predefined_root,
WorkItem* WorkItemList::AddSetRegValueWorkItem(HKEY predefined_root,
const std::wstring& key_path,
+ REGSAM wow64_access,
const std::wstring& value_name,
int64 value_data,
bool overwrite) {
WorkItem* item = reinterpret_cast<WorkItem*>(
- WorkItem::CreateSetRegValueWorkItem(predefined_root, key_path, value_name,
- value_data, overwrite));
+ WorkItem::CreateSetRegValueWorkItem(predefined_root,
+ key_path,
+ wow64_access,
+ value_name,
+ value_data,
+ overwrite));
AddWorkItem(item);
return item;
}
« no previous file with comments | « chrome/installer/util/work_item_list.h ('k') | chrome/installer/util/work_item_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698