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

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: Fix up BUILD.gn. 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
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..9efac18c66c033cc263f8be9ab867a72860c3aae 100644
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
@@ -7,20 +7,25 @@
#include <string>
#include <vector>
+#include "base/files/file_path.h"
+#include "base/path_service.h"
#include "base/strings/sys_string_conversions.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/version.h"
#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"
#include "chrome/common/channel_info.h"
+#include "chrome/common/chrome_paths.h"
#if defined(OS_WIN)
#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 +60,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 +178,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>

Powered by Google App Engine
This is Rietveld 408576698