| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |