Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5873)

Unified Diff: chrome/browser/download/chrome_download_manager_delegate.cc

Issue 10918136: Make web store resilient against download completion happening before opening. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/download/chrome_download_manager_delegate.cc
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
index f15623e2445dbbc7f8cbf4c342c1e09d09e61266..ed4214396cb271a388adcd2c1c6293a6c5d9fd20 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
@@ -665,7 +665,7 @@ void ChromeDownloadManagerDelegate::Observe(
int download_id = crx_installers_[installer];
crx_installers_.erase(installer.get());
- DownloadItem* item = download_manager_->GetActiveDownloadItem(download_id);
+ DownloadItem* item = download_manager_->GetDownload(download_id);
if (item)
item->DelayedDownloadOpened(installer->did_handle_successfully());
}
« no previous file with comments | « no previous file | chrome/browser/download/download_browsertest.cc » ('j') | content/public/test/download_test_observer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698