Chromium Code Reviews| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 232 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 232 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 233 (*s_whitelist)[::prefs::kAccessibilityStickyKeysEnabled] = | 233 (*s_whitelist)[::prefs::kAccessibilityStickyKeysEnabled] = |
| 234 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 234 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 235 (*s_whitelist)[::prefs::kAccessibilitySwitchAccessEnabled] = | 235 (*s_whitelist)[::prefs::kAccessibilitySwitchAccessEnabled] = |
| 236 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 236 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 237 (*s_whitelist)[::prefs::kAccessibilityVirtualKeyboardEnabled] = | 237 (*s_whitelist)[::prefs::kAccessibilityVirtualKeyboardEnabled] = |
| 238 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 238 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 239 (*s_whitelist)[::prefs::kAccessibilityMonoAudioEnabled] = | 239 (*s_whitelist)[::prefs::kAccessibilityMonoAudioEnabled] = |
| 240 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 240 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 241 | 241 |
| 242 // Android Apps | |
|
michaelpg
2016/12/01 20:15:34
consistency nit: end w/ period
stevenjb
2016/12/02 00:39:19
Done.
| |
| 243 (*s_whitelist)[::prefs::kArcEnabled] = | |
| 244 settings_private::PrefType::PREF_TYPE_BOOLEAN; | |
| 245 | |
| 242 // Misc. | 246 // Misc. |
| 243 (*s_whitelist)[::prefs::kUse24HourClock] = | 247 (*s_whitelist)[::prefs::kUse24HourClock] = |
| 244 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 248 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 245 (*s_whitelist)[::prefs::kLanguagePreferredLanguages] = | 249 (*s_whitelist)[::prefs::kLanguagePreferredLanguages] = |
| 246 settings_private::PrefType::PREF_TYPE_STRING; | 250 settings_private::PrefType::PREF_TYPE_STRING; |
| 247 (*s_whitelist)[::prefs::kTapDraggingEnabled] = | 251 (*s_whitelist)[::prefs::kTapDraggingEnabled] = |
| 248 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 252 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 249 (*s_whitelist)[chromeos::kStatsReportingPref] = | 253 (*s_whitelist)[chromeos::kStatsReportingPref] = |
| 250 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 254 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 251 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] = | 255 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] = |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 721 if (pref_object.key == ::prefs::kDefaultSearchProviderEnabled) | 725 if (pref_object.key == ::prefs::kDefaultSearchProviderEnabled) |
| 722 return GetExtensionOverridingSearchEngine(profile_); | 726 return GetExtensionOverridingSearchEngine(profile_); |
| 723 | 727 |
| 724 if (pref_object.key == proxy_config::prefs::kProxy) | 728 if (pref_object.key == proxy_config::prefs::kProxy) |
| 725 return GetExtensionOverridingProxy(profile_); | 729 return GetExtensionOverridingProxy(profile_); |
| 726 | 730 |
| 727 return nullptr; | 731 return nullptr; |
| 728 } | 732 } |
| 729 | 733 |
| 730 } // namespace extensions | 734 } // namespace extensions |
| OLD | NEW |