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

Unified Diff: chrome/browser/extensions/webstore_installer.cc

Issue 10912183: Remove DownloadManager::GetDownloadItem in favor of GetDownload() (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/extensions/webstore_installer.cc
diff --git a/chrome/browser/extensions/webstore_installer.cc b/chrome/browser/extensions/webstore_installer.cc
index 88e68ddf40ec39c9fccd62a4c2ebb5f5ed1fe2aa..ffae6402dcf5fcb74cdc07ea4ac88cc8e8b47c12 100644
--- a/chrome/browser/extensions/webstore_installer.cc
+++ b/chrome/browser/extensions/webstore_installer.cc
@@ -282,6 +282,8 @@ void WebstoreInstaller::OnDownloadStarted(DownloadId id, net::Error error) {
if (!download_manager)
return;
download_item_ = download_manager->GetDownload(id.local());
+ // TODO(benjhayden): DCHECK(item && item->IsInProgress()) after investigating
+ // the relationship between net::OK and invalid id.
if (download_item_) {
download_item_->AddObserver(this);
if (approval_.get())
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_unittest.cc ('k') | chrome/browser/plugins/plugin_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698