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

Unified Diff: content/browser/download/save_file_manager.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
« 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 3dab9d8471794f5f59155044ef9f9dfd06e72832..442c28e1024f4100ae6fcad902a59a5c27cc20cc 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.
- base::Delete(save_file->FullPath(), false);
+ base::DeleteFile(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 = base::CopyFile(file_path, save_file->FullPath());
if (!success)
- base::Delete(save_file->FullPath(), false);
+ base::DeleteFile(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());
- base::Delete(full_path, is_dir);
+ base::DeleteFile(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());
- base::Delete(save_file->FullPath(), false);
+ base::DeleteFile(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