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/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 247 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
248 (*s_whitelist)["cros.device.allow_bluetooth"] = | 248 (*s_whitelist)["cros.device.allow_bluetooth"] = |
249 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 249 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
250 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = | 250 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = |
251 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 251 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
252 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = | 252 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = |
253 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 253 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
254 (*s_whitelist)["settings.enable_screen_lock"] = | 254 (*s_whitelist)["settings.enable_screen_lock"] = |
255 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 255 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
256 | 256 |
| 257 // Ash settings. |
| 258 (*s_whitelist)["settings.enable_stylus_tools"] = |
| 259 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 260 (*s_whitelist)["settings.launch_palette_on_eject_event"] = |
| 261 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 262 |
257 // Input method settings. | 263 // Input method settings. |
258 (*s_whitelist)["settings.language.preload_engines"] = | 264 (*s_whitelist)["settings.language.preload_engines"] = |
259 settings_private::PrefType::PREF_TYPE_STRING; | 265 settings_private::PrefType::PREF_TYPE_STRING; |
260 (*s_whitelist)["settings.language.enabled_extension_imes"] = | 266 (*s_whitelist)["settings.language.enabled_extension_imes"] = |
261 settings_private::PrefType::PREF_TYPE_STRING; | 267 settings_private::PrefType::PREF_TYPE_STRING; |
262 (*s_whitelist)["settings.launch_palette_on_eject_event"] = | |
263 settings_private::PrefType::PREF_TYPE_BOOLEAN; | |
264 | 268 |
265 // Device settings. | 269 // Device settings. |
266 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = | 270 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = |
267 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 271 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
268 (*s_whitelist)["settings.touchpad.natural_scroll"] = | 272 (*s_whitelist)["settings.touchpad.natural_scroll"] = |
269 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 273 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
270 (*s_whitelist)["settings.touchpad.sensitivity2"] = | 274 (*s_whitelist)["settings.touchpad.sensitivity2"] = |
271 settings_private::PrefType::PREF_TYPE_NUMBER; | 275 settings_private::PrefType::PREF_TYPE_NUMBER; |
272 (*s_whitelist)["settings.mouse.primary_right"] = | 276 (*s_whitelist)["settings.mouse.primary_right"] = |
273 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 277 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 | 658 |
655 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 659 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
656 #if defined(OS_CHROMEOS) | 660 #if defined(OS_CHROMEOS) |
657 return CrosSettings::Get()->IsCrosSettings(pref_name); | 661 return CrosSettings::Get()->IsCrosSettings(pref_name); |
658 #else | 662 #else |
659 return false; | 663 return false; |
660 #endif | 664 #endif |
661 } | 665 } |
662 | 666 |
663 } // namespace extensions | 667 } // namespace extensions |
OLD | NEW |