Index: chrome/browser/extensions/webstore_installer.cc |
diff --git a/chrome/browser/extensions/webstore_installer.cc b/chrome/browser/extensions/webstore_installer.cc |
index 4bf576ad223dd36fd8559cdc87697448b346d9f6..e9b98a1800fde4838f1a4e63080c9e044c546ebd 100644 |
--- a/chrome/browser/extensions/webstore_installer.cc |
+++ b/chrome/browser/extensions/webstore_installer.cc |
@@ -295,10 +295,6 @@ void WebstoreInstaller::OnDownloadUpdated(DownloadItem* download) { |
case DownloadItem::INTERRUPTED: |
ReportFailure(kDownloadInterruptedError); |
break; |
- case DownloadItem::REMOVING: |
- download_item_->RemoveObserver(this); |
- download_item_ = NULL; |
- break; |
case DownloadItem::COMPLETE: |
// Wait for other notifications if the download is really an extension. |
if (!download_crx_util::IsExtensionDownload(*download)) |
@@ -310,8 +306,10 @@ void WebstoreInstaller::OnDownloadUpdated(DownloadItem* download) { |
} |
} |
-void WebstoreInstaller::OnDownloadOpened(DownloadItem* download) { |
+void WebstoreInstaller::OnDownloadDestroyed(DownloadItem* download) { |
CHECK_EQ(download_item_, download); |
+ download_item_->RemoveObserver(this); |
+ download_item_ = NULL; |
} |
void WebstoreInstaller::StartDownload(const FilePath& file) { |