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 |