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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 2240263004: Allow injecting a PrefService into ChromeComponentUpdaterConfigurator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/component_updater/chrome_component_updater_configurator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 1672f190c1067c222eda01030fa4c371b9614576..87096963d9e17472da08ef01ed4df01383c6ef07 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -892,7 +892,8 @@ BrowserProcessImpl::component_updater() {
scoped_refptr<update_client::Configurator> configurator =
component_updater::MakeChromeComponentUpdaterConfigurator(
base::CommandLine::ForCurrentProcess(),
- io_thread()->system_url_request_context_getter());
+ io_thread()->system_url_request_context_getter(),
+ g_browser_process->local_state());
// 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(
@@ -952,8 +953,7 @@ void BrowserProcessImpl::OnKeepAliveStateChanged(bool is_keeping_alive) {
Unpin();
}
-void BrowserProcessImpl::OnKeepAliveRestartStateChanged(bool can_restart){
-}
+void BrowserProcessImpl::OnKeepAliveRestartStateChanged(bool can_restart) {}
void BrowserProcessImpl::CreateWatchdogThread() {
DCHECK(!created_watchdog_thread_ && !watchdog_thread_);
« no previous file with comments | « no previous file | chrome/browser/component_updater/chrome_component_updater_configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698