Index: chrome/browser/download/download_status_updater.cc |
diff --git a/chrome/browser/download/download_status_updater.cc b/chrome/browser/download/download_status_updater.cc |
index 817e4184268926339bd599dc431f2ca5429911e2..a8dde9bc561020cd4e156d21df5ccf8791f5e5dd 100644 |
--- a/chrome/browser/download/download_status_updater.cc |
+++ b/chrome/browser/download/download_status_updater.cc |
@@ -68,8 +68,6 @@ void DownloadStatusUpdater::ManagerGoingDown( |
DCHECK(ContainsKey(managers_, manager)); |
managers_.erase(manager); |
manager->RemoveObserver(this); |
- // Item removal will be handled in response to DownloadItem REMOVING |
- // notification (in the !IN_PROGRESS conditional branch in UpdateItem). |
} |
// Methods inherited from content::DownloadItem::Observer. |
@@ -79,6 +77,15 @@ void DownloadStatusUpdater::OnDownloadUpdated( |
UpdateAppIconDownloadProgress(); |
} |
+void DownloadStatusUpdater::OnDownloadDestroyed( |
+ content::DownloadItem* download) { |
+ if (ContainsKey(items_, download)) { |
+ items_.erase(download); |
+ download->RemoveObserver(this); |
+ } |
+ UpdateAppIconDownloadProgress(); |
Randy Smith (Not in Mondays)
2012/08/09 17:03:44
I don't actually think you need this--OnDownloadDe
benjhayden
2012/08/09 18:35:06
I don't know this code, but it appears that UAIDP
Randy Smith (Not in Mondays)
2012/08/09 20:27:32
The major issue here is my distinction between the
|
+} |
+ |
void DownloadStatusUpdater::OnDownloadOpened(content::DownloadItem* download) { |
} |