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

Unified Diff: chrome/browser/prefs/browser_prefs.cc

Issue 2791903003: Pref service: have Mash and Chrome connect to the right pref stores (Closed)
Patch Set: Created 3 years, 9 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/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 12cac036daf174a70ca2192d983593675670029b..0f1ea5461b59fdeee11ec0a31478a30dffb992f1 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -791,4 +791,32 @@ void MigrateObsoleteProfilePrefs(Profile* profile) {
}
}
+std::set<PrefValueStore::PrefStoreType> ExpectedPrefStores() {
+ return std::set<PrefValueStore::PrefStoreType>({
+ PrefValueStore::MANAGED_STORE,
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
+ PrefValueStore::SUPERVISED_USER_STORE,
+#endif
+#if BUILDFLAG(ENABLE_EXTENSIONS)
+ PrefValueStore::EXTENSION_STORE,
+#endif
+ PrefValueStore::COMMAND_LINE_STORE, PrefValueStore::RECOMMENDED_STORE,
+ PrefValueStore::DEFAULT_STORE
+ });
+}
+
+std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() {
+ return std::set<PrefValueStore::PrefStoreType>({
+ PrefValueStore::MANAGED_STORE,
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
+ PrefValueStore::SUPERVISED_USER_STORE,
+#endif
+#if BUILDFLAG(ENABLE_EXTENSIONS)
+ PrefValueStore::EXTENSION_STORE,
+#endif
+ PrefValueStore::COMMAND_LINE_STORE, PrefValueStore::USER_STORE,
Sam McNally 2017/04/03 10:09:31 Remove USER_STORE.
tibell 2017/04/04 04:05:59 Done.
+ PrefValueStore::RECOMMENDED_STORE,
+ });
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698