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

Unified Diff: chrome/browser/chromeos/drive/file_cache.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
Index: chrome/browser/chromeos/drive/file_cache.cc
diff --git a/chrome/browser/chromeos/drive/file_cache.cc b/chrome/browser/chromeos/drive/file_cache.cc
index a99f56543cbd7e3cfc74525ce59214682f8160d1..32455e9ec8739d883a63dd719e2249d81a66cfed 100644
--- a/chrome/browser/chromeos/drive/file_cache.cc
+++ b/chrome/browser/chromeos/drive/file_cache.cc
@@ -230,7 +230,7 @@ bool FileCache::FreeDiskSpaceIfNeededFor(int64 num_bytes) {
current = enumerator.Next()) {
std::string resource_id = GetResourceIdFromPath(current);
if (!storage_->GetCacheEntry(resource_id, &entry))
- base::Delete(current, false /* recursive */);
+ base::DeleteFile(current, false /* recursive */);
}
// Check the disk space again.
@@ -493,7 +493,7 @@ FileError FileCache::Remove(const std::string& resource_id) {
// Delete the file.
base::FilePath path = GetCacheFilePath(resource_id);
- if (!base::Delete(path, false /* recursive */))
+ if (!base::DeleteFile(path, false /* recursive */))
return FILE_ERROR_FAILED;
// Now that all file operations have completed, remove from metadata.
@@ -669,7 +669,7 @@ bool FileCache::ClearAll() {
base::FileEnumerator::FILES);
for (base::FilePath file = enumerator.Next(); !file.empty();
file = enumerator.Next())
- base::Delete(file, false /* recursive */);
+ base::DeleteFile(file, false /* recursive */);
return true;
}
@@ -710,7 +710,7 @@ bool FileCache::ImportOldDB(const base::FilePath& old_db_path) {
}
// Delete old DB.
- base::Delete(old_db_path, true /* recursive */ );
+ base::DeleteFile(old_db_path, true /* recursive */ );
return imported;
}
@@ -723,7 +723,7 @@ void FileCache::RenameCacheFilesToNewFormat() {
"*.*.*");
for (base::FilePath current = enumerator.Next(); !current.empty();
current = enumerator.Next())
- base::Delete(current, false /* recursive */);
+ base::DeleteFile(current, false /* recursive */);
}
// Rename files.
« no previous file with comments | « chrome/browser/chromeos/contacts/contact_database.cc ('k') | chrome/browser/chromeos/drive/file_cache_metadata.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698