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

Unified Diff: content/browser/download/save_file_manager.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 | « content/browser/download/download_item_impl.cc ('k') | content/browser/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/save_file_manager.cc
diff --git a/content/browser/download/save_file_manager.cc b/content/browser/download/save_file_manager.cc
index 06802e34e87f3f286d31e7f15ddb26a7f291f200..e137c579bf4d951d91a46aa04fdc48a7288d5d99 100644
--- a/content/browser/download/save_file_manager.cc
+++ b/content/browser/download/save_file_manager.cc
@@ -411,7 +411,7 @@ void SaveFileManager::CancelSave(int save_id) {
// We've won a race with the UI thread--we finished the file before
// the UI thread cancelled it on us. Unfortunately, in this situation
// the cancel wins, so we need to delete the now detached file.
- file_util::Delete(save_file->FullPath(), false);
+ base::Delete(save_file->FullPath(), false);
} else if (save_file->save_source() ==
SaveFileCreateInfo::SAVE_FILE_FROM_NET) {
// If the data comes from the net IO thread and hasn't completed
@@ -461,7 +461,7 @@ void SaveFileManager::SaveLocalFile(const GURL& original_file_url,
// final name later.
bool success = file_util::CopyFile(file_path, save_file->FullPath());
if (!success)
- file_util::Delete(save_file->FullPath(), false);
+ base::Delete(save_file->FullPath(), false);
SaveFinished(save_id, original_file_url, render_process_id, success);
}
@@ -470,7 +470,7 @@ void SaveFileManager::OnDeleteDirectoryOrFile(const base::FilePath& full_path,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
DCHECK(!full_path.empty());
- file_util::Delete(full_path, is_dir);
+ base::Delete(full_path, is_dir);
}
void SaveFileManager::RenameAllFiles(
@@ -524,7 +524,7 @@ void SaveFileManager::RemoveSavedFileFromFileMap(
if (it != save_file_map_.end()) {
SaveFile* save_file = it->second;
DCHECK(!save_file->InProgress());
- file_util::Delete(save_file->FullPath(), false);
+ base::Delete(save_file->FullPath(), false);
delete save_file;
save_file_map_.erase(it);
}
« no previous file with comments | « content/browser/download/download_item_impl.cc ('k') | content/browser/gpu/gpu_pixel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698