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

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

Issue 2873533002: Prepare to abstract PersistedData by making it part of the configurator.
Patch Set: Fix ios compile error. Created 3 years, 7 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 6d2692085449d85171b1f0bf80940fa1bd03db30..914f5f2cbcbc0bda0897a83ddd0196a6c63f1dbb 100644
--- a/chrome/browser/component_updater/chrome_component_updater_configurator.cc
+++ b/chrome/browser/component_updater/chrome_component_updater_configurator.cc
@@ -21,6 +21,7 @@
#include "components/component_updater/configurator_impl.h"
#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
+#include "components/update_client/persisted_data.h"
#include "components/update_client/update_query_params.h"
#if defined(OS_WIN)
@@ -64,6 +65,7 @@ class ChromeConfigurator : public update_client::Configurator {
const override;
PrefService* GetPrefService() const override;
bool IsPerUserInstall() const override;
+ std::unique_ptr<update_client::PersistedData> CreateMetadata() const override;
private:
friend class base::RefCountedThreadSafe<ChromeConfigurator>;
@@ -198,6 +200,11 @@ bool ChromeConfigurator::IsPerUserInstall() const {
return component_updater::IsPerUserInstall();
}
+std::unique_ptr<update_client::PersistedData>
+ChromeConfigurator::CreateMetadata() const {
+ return base::MakeUnique<update_client::PersistedData>(GetPrefService());
+}
+
} // namespace
void RegisterPrefsForChromeComponentUpdaterConfigurator(

Powered by Google App Engine
This is Rietveld 408576698