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

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

Issue 16950028: Move file_util::Delete to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: chrome/installer/util/copy_tree_work_item.cc
diff --git a/chrome/installer/util/copy_tree_work_item.cc b/chrome/installer/util/copy_tree_work_item.cc
index 7f82e6abbc8f23f75b324ed1f1f11d3208800922..5f0bd9371abe1760912df12e997339b22a2ce71c 100644
--- a/chrome/installer/util/copy_tree_work_item.cc
+++ b/chrome/installer/util/copy_tree_work_item.cc
@@ -109,7 +109,7 @@ void CopyTreeWorkItem::Rollback() {
// If this does happen sometimes, we may consider using Move instead of
// Delete here. For now we just log the error and continue with the
// rest of rollback operation.
- if (copied_to_dest_path_ && !file_util::Delete(dest_path_, true)) {
+ if (copied_to_dest_path_ && !base::Delete(dest_path_, true)) {
LOG(ERROR) << "Can not delete " << dest_path_.value();
}
if (moved_to_backup_) {
@@ -120,7 +120,7 @@ void CopyTreeWorkItem::Rollback() {
}
}
if (copied_to_alternate_path_ &&
- !file_util::Delete(alternative_path_, true)) {
+ !base::Delete(alternative_path_, true)) {
LOG(ERROR) << "Can not delete " << alternative_path_.value();
}
}
« no previous file with comments | « chrome/installer/tools/validate_installation_main.cc ('k') | chrome/installer/util/copy_tree_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698