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

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

Issue 1471073008: Do not do unnecessary recursive deletes for files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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_unittest.cc
diff --git a/chrome/installer/util/copy_tree_work_item_unittest.cc b/chrome/installer/util/copy_tree_work_item_unittest.cc
index 35cc3af70be3d413155541cf7eb28703cefca254..5d7a5e09772f73e713e3a3f51c21ec6a38474b33 100644
--- a/chrome/installer/util/copy_tree_work_item_unittest.cc
+++ b/chrome/installer/util/copy_tree_work_item_unittest.cc
@@ -560,7 +560,7 @@ TEST_F(CopyTreeWorkItemTest, DISABLED_IfNotPresentTest) {
EXPECT_FALSE(base::PathExists(backup_file));
// Now delete the destination and try copying the file again.
- base::DeleteFile(file_name_to, true);
+ base::DeleteFile(file_name_to, false);
work_item.reset(WorkItem::CreateCopyTreeWorkItem(
file_name_from, file_name_to,
temp_dir_.path(), WorkItem::IF_NOT_PRESENT,
« no previous file with comments | « chrome/browser/profiles/profile_info_cache_unittest.cc ('k') | storage/browser/fileapi/file_system_usage_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698