Index: chrome/browser/component_updater/chrome_component_updater_configurator.cc |
diff --git a/chrome/browser/component_updater/chrome_component_updater_configurator.cc b/chrome/browser/component_updater/chrome_component_updater_configurator.cc |
index 97e99e71a3045c27056573ceeca06d0449e41e9f..dd32dad332749c2b37d0450aad3110cacc13122c 100644 |
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc |
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc |
@@ -13,6 +13,7 @@ |
#if defined(OS_WIN) |
#include "base/win/win_util.h" |
#endif |
+#include "chrome/browser/browser_process.h" |
#include "chrome/browser/component_updater/component_patcher_operation_out_of_process.h" |
#include "chrome/browser/google/google_brand.h" |
#include "chrome/browser/update_client/chrome_update_query_params_delegate.h" |
@@ -21,6 +22,7 @@ |
#include "chrome/installer/util/google_update_settings.h" |
#endif |
#include "components/component_updater/configurator_impl.h" |
+#include "components/prefs/pref_service.h" |
#include "content/public/browser/browser_thread.h" |
namespace component_updater { |
@@ -55,6 +57,7 @@ class ChromeConfigurator : public update_client::Configurator { |
bool UseCupSigning() const override; |
scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
const override; |
+ PrefService* GetPrefService() const override; |
private: |
friend class base::RefCountedThreadSafe<ChromeConfigurator>; |
@@ -172,6 +175,10 @@ ChromeConfigurator::GetSequencedTaskRunner() const { |
base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); |
} |
+PrefService* ChromeConfigurator::GetPrefService() const { |
+ return g_browser_process->local_state(); |
+} |
+ |
} // namespace |
scoped_refptr<update_client::Configurator> |