diff options
Diffstat (limited to 'content/browser/download/download_manager_impl.cc')
-rw-r--r-- | content/browser/download/download_manager_impl.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc index f742c7c..b798899 100644 --- a/content/browser/download/download_manager_impl.cc +++ b/content/browser/download/download_manager_impl.cc @@ -428,7 +428,7 @@ content::DownloadId DownloadManagerImpl::StartDownload( void DownloadManagerImpl::OnDownloadFileCreated( int32 download_id, content::DownloadInterruptReason reason) { if (reason != content::DOWNLOAD_INTERRUPT_REASON_NONE) { - OnDownloadInterrupted(download_id, 0, "", reason); + OnDownloadInterrupted(download_id, reason); // TODO(rdsmith): It makes no sense to continue along the // regular download path after we've gotten an error. But it's // the way the code has historically worked, and this allows us @@ -771,15 +771,12 @@ void DownloadManagerImpl::DownloadStopped(DownloadItem* download) { void DownloadManagerImpl::OnDownloadInterrupted( int32 download_id, - int64 size, - const std::string& hash_state, content::DownloadInterruptReason reason) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); DownloadItem* download = GetActiveDownload(download_id); if (!download) return; - download->UpdateProgress(size, 0, hash_state); download->Interrupt(reason); } |