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

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

Issue 1861383004: Add module for counting date-last-roll-call and persisting those counts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another test fix. Created 4 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
« no previous file with comments | « no previous file | chrome/browser/extensions/updater/chrome_update_client_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | chrome/browser/extensions/updater/chrome_update_client_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698