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

Unified Diff: content/browser/storage_partition_impl_map.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: content/browser/storage_partition_impl_map.cc
diff --git a/content/browser/storage_partition_impl_map.cc b/content/browser/storage_partition_impl_map.cc
index a8b41cc3a052777a5a75c460e30c330c966e1709..6a90f8ac743ddad48ca0ed2f7b16959b853eead8 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -233,7 +233,7 @@ void ObliterateOneDirectory(const base::FilePath& current_dir,
switch (action) {
case kDelete:
- file_util::Delete(to_delete, true);
+ base::Delete(to_delete, true);
break;
case kEnqueue:
@@ -285,7 +285,7 @@ void BlockingObliteratePath(
// root and be done with it. Otherwise, signal garbage collection and do
// a best-effort delete of the on-disk structures.
if (valid_paths_to_keep.empty()) {
- file_util::Delete(root, true);
+ base::Delete(root, true);
return;
}
closure_runner->PostTask(FROM_HERE, on_gc_required);
@@ -343,8 +343,7 @@ void BlockingGarbageCollect(
file_access_runner->PostTask(
FROM_HERE,
- base::Bind(base::IgnoreResult(&file_util::Delete), trash_directory,
- true));
+ base::Bind(base::IgnoreResult(&base::Delete), trash_directory, true));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698