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

Unified Diff: net/disk_cache/simple/simple_index_file.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/entry_unittest.cc ('k') | net/disk_cache/simple/simple_synchronous_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_index_file.cc
diff --git a/net/disk_cache/simple/simple_index_file.cc b/net/disk_cache/simple/simple_index_file.cc
index 319352080c2a339745c7e56637c7b59f426b3b93..39bbe8b2d8d28f7e873cdad7b2a9a6b7c34017ca 100644
--- a/net/disk_cache/simple/simple_index_file.cc
+++ b/net/disk_cache/simple/simple_index_file.cc
@@ -51,7 +51,7 @@ void WriteToDiskInternal(const base::FilePath& index_filename,
// TODO(felipeg): Add better error handling.
LOG(ERROR) << "Could not write Simple Cache index to temporary file: "
<< temp_filename.value();
- file_util::Delete(temp_filename, /* recursive = */ false);
+ base::Delete(temp_filename, /* recursive = */ false);
} else {
// Swap temp and index_file.
bool result = file_util::ReplaceFile(temp_filename, index_filename);
@@ -178,14 +178,14 @@ scoped_ptr<SimpleIndex::EntrySet> SimpleIndexFile::LoadFromDisk(
std::string contents;
if (!file_util::ReadFileToString(index_filename, &contents)) {
LOG(WARNING) << "Could not read Simple Index file.";
- file_util::Delete(index_filename, false);
+ base::Delete(index_filename, false);
return scoped_ptr<SimpleIndex::EntrySet>();
}
scoped_ptr<SimpleIndex::EntrySet> entries =
SimpleIndexFile::Deserialize(contents.data(), contents.size());
if (!entries) {
- file_util::Delete(index_filename, false);
+ base::Delete(index_filename, false);
return scoped_ptr<SimpleIndex::EntrySet>();
}
@@ -331,7 +331,7 @@ scoped_ptr<SimpleIndex::EntrySet> SimpleIndexFile::RestoreFromDisk(
const base::FilePath& index_file_path) {
LOG(INFO) << "Simple Cache Index is being restored from disk.";
- file_util::Delete(index_file_path, /* recursive = */ false);
+ base::Delete(index_file_path, /* recursive = */ false);
scoped_ptr<SimpleIndex::EntrySet> index_file_entries(
new SimpleIndex::EntrySet());
« no previous file with comments | « net/disk_cache/entry_unittest.cc ('k') | net/disk_cache/simple/simple_synchronous_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698