| 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);
|
| }
|
|
|