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

Unified Diff: chrome/browser/chromeos/drive/file_cache.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: 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 78e765e398f3c36b224c6aed206032849e488bb6..35a960bfdf8f23ebe5df7d3fecbcc515f7b26f75 100644
--- a/chrome/browser/chromeos/drive/file_cache.cc
+++ b/chrome/browser/chromeos/drive/file_cache.cc
@@ -123,7 +123,7 @@ void DeleteFilesSelectively(const base::FilePath& path_to_delete_pattern,
if (!path_to_keep.empty() && current == path_to_keep)
continue;
- success = file_util::Delete(current, false);
+ success = base::Delete(current, false);
if (!success)
DVLOG(1) << "Error deleting " << current.value();
else
@@ -310,7 +310,7 @@ bool FileCache::FreeDiskSpaceIfNeededFor(int64 num_bytes) {
current = enumerator.Next()) {
util::ParseCacheFilePath(current, &resource_id, &md5);
if (!GetCacheEntry(resource_id, md5, &entry))
- file_util::Delete(current, false /* recursive */);
+ base::Delete(current, false /* recursive */);
}
// Check the disk space again.
@@ -791,7 +791,7 @@ bool FileCache::ClearAll() {
base::FileEnumerator::FILES);
for (base::FilePath file = enumerator.Next(); !file.empty();
file = enumerator.Next())
- file_util::Delete(file, false /* recursive */);
+ base::Delete(file, false /* recursive */);
return true;
}
@@ -832,7 +832,7 @@ bool FileCache::ImportOldDB(const base::FilePath& old_db_path) {
}
// Delete old DB.
- file_util::Delete(old_db_path, true /* recursive */ );
+ base::Delete(old_db_path, true /* recursive */ );
return imported;
}
« 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