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

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

Issue 2860683002: WIP: Pref service: use the incognito support from Chrome
Patch Set: Rebase Created 3 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
« no previous file with comments | « chrome/browser/prefs/browser_prefs.h ('k') | chrome/browser/prefs/chrome_pref_service_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index e1b39c363d1d215e4ab8ed7b88798ec57b7e59c4..556698caa40127415e992e4dc805b0f14c0dbca2 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -812,6 +812,12 @@ std::set<PrefValueStore::PrefStoreType> ExpectedPrefStores() {
});
}
+std::set<PrefValueStore::PrefStoreType> ExpectedIncognitoPrefStores() {
+ auto pref_stores = ExpectedPrefStores();
+ pref_stores.insert(PrefValueStore::INCOGNITO_STORE);
+ return pref_stores;
+}
+
std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() {
auto pref_stores = ExpectedPrefStores();
pref_stores.erase(PrefValueStore::DEFAULT_STORE);
@@ -819,4 +825,10 @@ std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() {
return pref_stores;
}
+std::set<PrefValueStore::PrefStoreType> InProcessIncognitoPrefStores() {
+ auto pref_stores = InProcessPrefStores();
+ pref_stores.insert(PrefValueStore::INCOGNITO_STORE);
+ return pref_stores;
+}
+
} // namespace chrome
« no previous file with comments | « chrome/browser/prefs/browser_prefs.h ('k') | chrome/browser/prefs/chrome_pref_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698