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

Unified Diff: components/data_reduction_proxy/core/browser/data_store_impl.cc

Issue 1471073008: Do not do unnecessary recursive deletes for files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: components/data_reduction_proxy/core/browser/data_store_impl.cc
diff --git a/components/data_reduction_proxy/core/browser/data_store_impl.cc b/components/data_reduction_proxy/core/browser/data_store_impl.cc
index a34407e6ddb21585df239d8e739dac33b63d64ed..78530e0a37b592e7bc0dd3e74086d6e9747947d6 100644
--- a/components/data_reduction_proxy/core/browser/data_store_impl.cc
+++ b/components/data_reduction_proxy/core/browser/data_store_impl.cc
@@ -147,7 +147,7 @@ void DataStoreImpl::RecreateDB() {
LOG(WARNING) << "Deleting corrupt Data Reduction Proxy LevelDB";
db_.reset(nullptr);
- base::DeleteFile(profile_path_.Append(kDBName), true);
+ base::DeleteFile(profile_path_.Append(kDBName), false);
Not at Google. Contact bengr 2015/11/30 19:50:24 It seems to me that the recursive delete is necess
Lei Zhang 2015/12/03 21:39:06 Ah, I see, LevelDB takes a directory and not a fil
OpenDB();
}
« no previous file with comments | « chrome/installer/util/copy_tree_work_item_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