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

Unified Diff: sync/syncable/syncable_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
« no previous file with comments | « storage/browser/fileapi/obfuscated_file_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/syncable_unittest.cc
diff --git a/sync/syncable/syncable_unittest.cc b/sync/syncable/syncable_unittest.cc
index 52baee46a1bc2776c295ecbb19685ebbf0e0f507..6430aab7d8ad71d55923426002433650710786f5 100644
--- a/sync/syncable/syncable_unittest.cc
+++ b/sync/syncable/syncable_unittest.cc
@@ -157,7 +157,7 @@ class OnDiskSyncableDirectoryTest : public SyncableDirectoryTest {
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
file_path_ = temp_dir_.path().Append(
FILE_PATH_LITERAL("Test.sqlite3"));
- base::DeleteFile(file_path_, true);
+ base::DeleteFile(file_path_, false);
CreateDirectory();
}
@@ -165,7 +165,7 @@ class OnDiskSyncableDirectoryTest : public SyncableDirectoryTest {
// This also closes file handles.
dir()->SaveChanges();
dir().reset();
- base::DeleteFile(file_path_, true);
+ base::DeleteFile(file_path_, false);
SyncableDirectoryTest::TearDown();
}
« no previous file with comments | « storage/browser/fileapi/obfuscated_file_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698