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

Unified Diff: net/disk_cache/cache_util_posix.cc

Issue 18584011: Rename base::Delete to base::DeleteFile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 40cf9a5321d5cddcb7ec2ebbb3ae7fed9ae3b83c..2b13d9e5864d9b5c3827a26cc78416dbd39553dc 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 (!base::Delete(file, /* recursive */ false)) {
+ if (!base::DeleteFile(file, /* recursive */ false)) {
LOG(WARNING) << "Unable to delete cache.";
return;
}
}
if (remove_folder) {
- if (!base::Delete(path, /* recursive */ false)) {
+ if (!base::DeleteFile(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 base::Delete(name, false);
+ return base::DeleteFile(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