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

Unified Diff: net/disk_cache/cache_util_posix.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
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/cache_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/cache_util_posix.cc
diff --git a/net/disk_cache/cache_util_posix.cc b/net/disk_cache/cache_util_posix.cc
index ee60bf7b161e2b4d8fbf5c225d4d29b62a644967..db1a4ac206278725bea908b45cdc23fb1e3ab85a 100644
--- a/net/disk_cache/cache_util_posix.cc
+++ b/net/disk_cache/cache_util_posix.cc
@@ -45,14 +45,14 @@ void DeleteCache(const base::FilePath& path, bool remove_folder) {
base::FileEnumerator::FILES);
for (base::FilePath file = iter.Next(); !file.value().empty();
file = iter.Next()) {
- if (!file_util::Delete(file, /* recursive */ false)) {
+ if (!base::Delete(file, /* recursive */ false)) {
LOG(WARNING) << "Unable to delete cache.";
return;
}
}
if (remove_folder) {
- if (!file_util::Delete(path, /* recursive */ false)) {
+ if (!base::Delete(path, /* recursive */ false)) {
LOG(WARNING) << "Unable to delete cache folder.";
return;
}
@@ -60,7 +60,7 @@ void DeleteCache(const base::FilePath& path, bool remove_folder) {
}
bool DeleteCacheFile(const base::FilePath& name) {
- return file_util::Delete(name, false);
+ return base::Delete(name, false);
}
} // namespace disk_cache
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/cache_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698