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

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

Issue 39048: Move files instead of copying them. (Closed)
Patch Set: More code review comments. Created 11 years, 10 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.h ('k') | chrome/installer/util/work_item_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/work_item.cc
diff --git a/chrome/installer/util/work_item.cc b/chrome/installer/util/work_item.cc
index 790540531e82653dc06cd94e0c0df50d0b658bb8..568a79d2db5fd99c3bdf7bbfb34db34ad185158e 100644
--- a/chrome/installer/util/work_item.cc
+++ b/chrome/installer/util/work_item.cc
@@ -9,6 +9,7 @@
#include "chrome/installer/util/create_reg_key_work_item.h"
#include "chrome/installer/util/delete_tree_work_item.h"
#include "chrome/installer/util/delete_reg_value_work_item.h"
+#include "chrome/installer/util/move_tree_work_item.h"
#include "chrome/installer/util/set_reg_value_work_item.h"
#include "chrome/installer/util/work_item_list.h"
@@ -46,6 +47,12 @@ DeleteTreeWorkItem* WorkItem::CreateDeleteTreeWorkItem(std::wstring root_path,
return new DeleteTreeWorkItem(root_path, key_path);
}
+MoveTreeWorkItem* WorkItem::CreateMoveTreeWorkItem(std::wstring source_path,
+ std::wstring dest_path,
+ std::wstring temp_dir) {
+ return new MoveTreeWorkItem(source_path, dest_path, temp_dir);
+}
+
SetRegValueWorkItem* WorkItem::CreateSetRegValueWorkItem(
HKEY predefined_root, std::wstring key_path,
std::wstring value_name, std::wstring value_data, bool overwrite) {
« no previous file with comments | « chrome/installer/util/work_item.h ('k') | chrome/installer/util/work_item_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698