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

Unified Diff: chrome/installer/util/work_item_list.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_list.h ('k') | no next file » | 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 ef0a9c43f7230882302032a39c49336bd03617bb..0115e8128c682a699968e43c34f28a1521684ef9 100644
--- a/chrome/installer/util/work_item_list.cc
+++ b/chrome/installer/util/work_item_list.cc
@@ -104,6 +104,14 @@ bool WorkItemList::AddDeleteTreeWorkItem(std::wstring root_path,
return AddWorkItem(item);
}
+bool WorkItemList::AddMoveTreeWorkItem(std::wstring source_path,
+ std::wstring dest_path,
+ std::wstring temp_dir) {
+ WorkItem* item = reinterpret_cast<WorkItem*>(
+ WorkItem::CreateMoveTreeWorkItem(source_path, dest_path, temp_dir));
+ return AddWorkItem(item);
+}
+
bool WorkItemList::AddSetRegValueWorkItem(HKEY predefined_root,
std::wstring key_path,
std::wstring value_name,
« no previous file with comments | « chrome/installer/util/work_item_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698