OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/extensions/api/settings_private/prefs_util.h" | 5 #include "chrome/browser/extensions/api/settings_private/prefs_util.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
10 #include "chrome/browser/extensions/settings_api_helpers.h" | 10 #include "chrome/browser/extensions/settings_api_helpers.h" |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 (*s_whitelist)[chromeos::kAccountsPrefSupervisedUsersEnabled] = | 201 (*s_whitelist)[chromeos::kAccountsPrefSupervisedUsersEnabled] = |
202 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 202 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
203 (*s_whitelist)[chromeos::kAccountsPrefShowUserNamesOnSignIn] = | 203 (*s_whitelist)[chromeos::kAccountsPrefShowUserNamesOnSignIn] = |
204 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 204 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
205 (*s_whitelist)[chromeos::kAccountsPrefAllowNewUser] = | 205 (*s_whitelist)[chromeos::kAccountsPrefAllowNewUser] = |
206 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 206 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
207 (*s_whitelist)[chromeos::kAccountsPrefUsers] = | 207 (*s_whitelist)[chromeos::kAccountsPrefUsers] = |
208 settings_private::PrefType::PREF_TYPE_LIST; | 208 settings_private::PrefType::PREF_TYPE_LIST; |
209 (*s_whitelist)[::prefs::kEnableAutoScreenLock] = | 209 (*s_whitelist)[::prefs::kEnableAutoScreenLock] = |
210 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 210 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 211 (*s_whitelist)[::prefs::kEnableQuickUnlockFingerprint] = |
| 212 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
211 | 213 |
212 // Accessibility. | 214 // Accessibility. |
213 (*s_whitelist)[::prefs::kAccessibilitySpokenFeedbackEnabled] = | 215 (*s_whitelist)[::prefs::kAccessibilitySpokenFeedbackEnabled] = |
214 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 216 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
215 (*s_whitelist)[::prefs::kAccessibilityAutoclickEnabled] = | 217 (*s_whitelist)[::prefs::kAccessibilityAutoclickEnabled] = |
216 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 218 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
217 (*s_whitelist)[::prefs::kAccessibilityAutoclickDelayMs] = | 219 (*s_whitelist)[::prefs::kAccessibilityAutoclickDelayMs] = |
218 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 220 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
219 (*s_whitelist)[::prefs::kAccessibilityCaretHighlightEnabled] = | 221 (*s_whitelist)[::prefs::kAccessibilityCaretHighlightEnabled] = |
220 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 222 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 if (pref_object.key == ::prefs::kDefaultSearchProviderEnabled) | 729 if (pref_object.key == ::prefs::kDefaultSearchProviderEnabled) |
728 return GetExtensionOverridingSearchEngine(profile_); | 730 return GetExtensionOverridingSearchEngine(profile_); |
729 | 731 |
730 if (pref_object.key == proxy_config::prefs::kProxy) | 732 if (pref_object.key == proxy_config::prefs::kProxy) |
731 return GetExtensionOverridingProxy(profile_); | 733 return GetExtensionOverridingProxy(profile_); |
732 | 734 |
733 return nullptr; | 735 return nullptr; |
734 } | 736 } |
735 | 737 |
736 } // namespace extensions | 738 } // namespace extensions |
OLD | NEW |