summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_process_impl.cc
diff options
context:
space:
mode:
authorsorin <sorin@chromium.org>2015-04-17 10:15:03 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-17 17:15:46 +0000
commit9797abaa5b60464ee061ef0b55237e6f7a13d3dd (patch)
treecf43abf0ef5720ec2390f9dbe967145a1fed2a5b /chrome/browser/browser_process_impl.cc
parent18131163ea9d46318299081666150a2c26442009 (diff)
downloadchromium_src-9797abaa5b60464ee061ef0b55237e6f7a13d3dd.zip
chromium_src-9797abaa5b60464ee061ef0b55237e6f7a13d3dd.tar.gz
chromium_src-9797abaa5b60464ee061ef0b55237e6f7a13d3dd.tar.bz2
Implement common code for component and extension updaters.
The changes not under update_client are mechanical. This change creates a working UpdateClient updater client, which can be reused by both component and extension updaters. This code is not hooked up yet with any of the updaters above. Those changes will be committed in the near future by other CLs. R=waffles,erikwright,agl,dgarrett,jhawkins,brettw BUG=450337 Committed: https://crrev.com/ba6742df55de47568e3aa438378d844a7439c391 Cr-Commit-Position: refs/heads/master@{#325006} Review URL: https://codereview.chromium.org/1055903003 Cr-Commit-Position: refs/heads/master@{#325658}
Diffstat (limited to 'chrome/browser/browser_process_impl.cc')
-rw-r--r--chrome/browser/browser_process_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 254d2ef..d463086 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -876,14 +876,14 @@ BrowserProcessImpl::component_updater() {
if (!component_updater_.get()) {
if (!BrowserThread::CurrentlyOn(BrowserThread::UI))
return NULL;
- update_client::Configurator* configurator =
+ scoped_refptr<update_client::Configurator> configurator =
component_updater::MakeChromeComponentUpdaterConfigurator(
base::CommandLine::ForCurrentProcess(),
io_thread()->system_url_request_context_getter());
// Creating the component updater does not do anything, components
// need to be registered and Start() needs to be called.
- component_updater_.reset(
- component_updater::ComponentUpdateServiceFactory(configurator));
+ component_updater_.reset(component_updater::ComponentUpdateServiceFactory(
+ configurator).release());
}
return component_updater_.get();
}