summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/download/download_manager.cc1
-rw-r--r--chrome/browser/download/save_package.cc3
2 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 1d40bec..af7c9d5 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -242,7 +242,6 @@ void DownloadItem::Cancel(bool update_history) {
void DownloadItem::Finished(int64 size) {
state_ = COMPLETE;
UpdateSize(size);
- UpdateObservers();
StopProgressTimer();
}
diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc
index e4df35a..f01ac86 100644
--- a/chrome/browser/download/save_package.cc
+++ b/chrome/browser/download/save_package.cc
@@ -651,6 +651,9 @@ void SavePackage::Finish() {
save_ids));
download_->Finished(all_save_items_count_);
+ // Notify download observers that we are complete (the call to Finished() set
+ // the state to complete but did not notify).
+ download_->UpdateObservers();
NotificationService::current()->Notify(
NotificationType::SAVE_PACKAGE_SUCCESSFULLY_FINISHED,