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

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: Update PrefServiceFactoryTest 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,
Bernhard Bauer 2017/04/03 10:37:39 <sigh> I guess clang-format doesn't deal with init
tibell 2017/04/04 04:05:59 Done.
+#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
Bernhard Bauer 2017/04/03 10:37:40 Why is the USER_STORE missing here?
tibell 2017/04/04 04:05:59 It's always present, but I changed the code to all
+ });
+}
+
+std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() {
Bernhard Bauer 2017/04/03 10:37:39 I guess you could really implement this method in
tibell 2017/04/04 04:05:59 Done.
+ 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,
+ PrefValueStore::RECOMMENDED_STORE,
+ });
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698