summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/download/download_manager.cc')
-rw-r--r--content/browser/download/download_manager.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/content/browser/download/download_manager.cc b/content/browser/download/download_manager.cc
index e56a927..e80113e 100644
--- a/content/browser/download/download_manager.cc
+++ b/content/browser/download/download_manager.cc
@@ -394,9 +394,8 @@ void DownloadManager::OnResponseCompleted(int32 download_id,
return;
DownloadItem* download = active_downloads_[download_id];
- download->OnAllDataSaved(size);
-
- delegate_->OnResponseCompleted(download, hash);
+ download->OnAllDataSaved(size, hash);
+ delegate_->OnResponseCompleted(download);
MaybeCompleteDownload(download);
}