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

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 2860683002: WIP: Pref service: use the incognito support from Chrome
Patch Set: Rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/prefs/browser_prefs.h" 5 #include "chrome/browser/prefs/browser_prefs.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 PrefValueStore::SUPERVISED_USER_STORE, 805 PrefValueStore::SUPERVISED_USER_STORE,
806 #endif 806 #endif
807 #if BUILDFLAG(ENABLE_EXTENSIONS) 807 #if BUILDFLAG(ENABLE_EXTENSIONS)
808 PrefValueStore::EXTENSION_STORE, 808 PrefValueStore::EXTENSION_STORE,
809 #endif 809 #endif
810 PrefValueStore::COMMAND_LINE_STORE, PrefValueStore::RECOMMENDED_STORE, 810 PrefValueStore::COMMAND_LINE_STORE, PrefValueStore::RECOMMENDED_STORE,
811 PrefValueStore::USER_STORE, PrefValueStore::DEFAULT_STORE 811 PrefValueStore::USER_STORE, PrefValueStore::DEFAULT_STORE
812 }); 812 });
813 } 813 }
814 814
815 std::set<PrefValueStore::PrefStoreType> ExpectedIncognitoPrefStores() {
816 auto pref_stores = ExpectedPrefStores();
817 pref_stores.insert(PrefValueStore::INCOGNITO_STORE);
818 return pref_stores;
819 }
820
815 std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() { 821 std::set<PrefValueStore::PrefStoreType> InProcessPrefStores() {
816 auto pref_stores = ExpectedPrefStores(); 822 auto pref_stores = ExpectedPrefStores();
817 pref_stores.erase(PrefValueStore::DEFAULT_STORE); 823 pref_stores.erase(PrefValueStore::DEFAULT_STORE);
818 pref_stores.erase(PrefValueStore::USER_STORE); 824 pref_stores.erase(PrefValueStore::USER_STORE);
819 return pref_stores; 825 return pref_stores;
820 } 826 }
821 827
828 std::set<PrefValueStore::PrefStoreType> InProcessIncognitoPrefStores() {
829 auto pref_stores = InProcessPrefStores();
830 pref_stores.insert(PrefValueStore::INCOGNITO_STORE);
831 return pref_stores;
832 }
833
822 } // namespace chrome 834 } // namespace chrome
OLDNEW
« 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