summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_file_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/download/download_file_manager.cc')
-rw-r--r--content/browser/download/download_file_manager.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/content/browser/download/download_file_manager.cc b/content/browser/download/download_file_manager.cc
index cdc2be9..dda4332 100644
--- a/content/browser/download/download_file_manager.cc
+++ b/content/browser/download/download_file_manager.cc
@@ -301,14 +301,7 @@ void DownloadFileManager::CancelDownloadOnRename(
return;
DownloadManager* download_manager = download_file->GetDownloadManager();
- if (!download_manager) {
- // Without a download manager, we can't cancel the request normally, so we
- // need to do it here. The normal path will also update the download
- // history before canceling the request.
- download_file->CancelDownloadRequest();
- return;
- }
-
+ DCHECK(download_manager);
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(&DownloadManager::OnDownloadInterrupted,