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

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: Really fix a compile error in iOS component configurator this time. 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 5acfc4ded9ab9b609eae39e4ad4467a31250b1d3..04191d3a279d9ed5fa4c80fa898e06be2ba3337b 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;
+ update_client::PersistedData* CreateMetadata() const override;
private:
friend class base::RefCountedThreadSafe<ChromeConfigurator>;
@@ -198,6 +200,10 @@ bool ChromeConfigurator::IsPerUserInstall() const {
return component_updater::IsPerUserInstall();
}
+update_client::PersistedData* ChromeConfigurator::CreateMetadata() const {
+ return new update_client::PersistedData(GetPrefService());
+}
+
} // namespace
void RegisterPrefsForChromeComponentUpdaterConfigurator(

Powered by Google App Engine
This is Rietveld 408576698