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

Unified Diff: chrome/browser/component_updater/component_updater_service.cc

Issue 250383008: Refactor the interface for the CrxDownloader to take a callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/component_updater/component_updater_service.cc
diff --git a/chrome/browser/component_updater/component_updater_service.cc b/chrome/browser/component_updater/component_updater_service.cc
index 903674a15409ab26adcd249e7c6f06c886e10402..990ca65addac780e18f0e108de346cb8a32b53a5 100644
--- a/chrome/browser/component_updater/component_updater_service.cc
+++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -670,14 +670,13 @@ void CrxUpdateService::UpdateComponent(CrxUpdateItem* workitem) {
!workitem->on_demand && allow_background_download &&
config_->UseBackgroundDownloader();
- crx_downloader_.reset(CrxDownloader::Create(
- is_background_download,
- config_->RequestContext(),
- blocking_task_runner_,
- base::Bind(&CrxUpdateService::DownloadComplete,
- base::Unretained(this),
- base::Passed(&crx_context))));
- crx_downloader_->StartDownload(*urls);
+ crx_downloader_.reset(CrxDownloader::Create(is_background_download,
+ config_->RequestContext(),
+ blocking_task_runner_));
+ crx_downloader_->StartDownload(*urls,
+ base::Bind(&CrxUpdateService::DownloadComplete,
+ base::Unretained(this),
+ base::Passed(&crx_context)));
}
void CrxUpdateService::UpdateCheckComplete(

Powered by Google App Engine
This is Rietveld 408576698