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

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

Issue 9570005: Added callback to DownloadUrl() so we can find download failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added thread checks. Created 8 years, 10 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 91aa03d20039fbec822de28aeb25f008fd6571ae..b472634b83f5d722d5d086fce916849264b5e157 100644
--- a/chrome/browser/extensions/webstore_installer.cc
+++ b/chrome/browser/extensions/webstore_installer.cc
@@ -215,7 +215,8 @@ void WebstoreInstaller::StartDownload(FilePath file) {
download_util::INITIATED_BY_WEBSTORE_INSTALLER);
profile_->GetDownloadManager()->DownloadUrl(
download_url_, referrer, "",
- false, -1, save_info, controller_->GetWebContents());
+ false, -1, save_info, controller_->GetWebContents(),
+ content::DownloadManager::OnStartedCallback());
}
void WebstoreInstaller::ReportFailure(const std::string& error) {

Powered by Google App Engine
This is Rietveld 408576698