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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = | 250 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = |
251 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 251 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
252 (*s_whitelist)["settings.enable_screen_lock"] = | 252 (*s_whitelist)["settings.enable_screen_lock"] = |
253 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 253 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
254 | 254 |
255 // Input method settings. | 255 // Input method settings. |
256 (*s_whitelist)["settings.language.preload_engines"] = | 256 (*s_whitelist)["settings.language.preload_engines"] = |
257 settings_private::PrefType::PREF_TYPE_STRING; | 257 settings_private::PrefType::PREF_TYPE_STRING; |
258 (*s_whitelist)["settings.language.enabled_extension_imes"] = | 258 (*s_whitelist)["settings.language.enabled_extension_imes"] = |
259 settings_private::PrefType::PREF_TYPE_STRING; | 259 settings_private::PrefType::PREF_TYPE_STRING; |
| 260 (*s_whitelist)["settings.enable_ash_palette"] = |
| 261 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
260 (*s_whitelist)["settings.launch_note_app_on_eject_event"] = | 262 (*s_whitelist)["settings.launch_note_app_on_eject_event"] = |
261 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 263 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
262 | 264 |
263 // Device settings. | 265 // Device settings. |
264 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = | 266 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = |
265 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 267 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
266 (*s_whitelist)["settings.touchpad.natural_scroll"] = | 268 (*s_whitelist)["settings.touchpad.natural_scroll"] = |
267 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 269 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
268 (*s_whitelist)["settings.touchpad.sensitivity2"] = | 270 (*s_whitelist)["settings.touchpad.sensitivity2"] = |
269 settings_private::PrefType::PREF_TYPE_NUMBER; | 271 settings_private::PrefType::PREF_TYPE_NUMBER; |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 | 654 |
653 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 655 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
654 #if defined(OS_CHROMEOS) | 656 #if defined(OS_CHROMEOS) |
655 return CrosSettings::Get()->IsCrosSettings(pref_name); | 657 return CrosSettings::Get()->IsCrosSettings(pref_name); |
656 #else | 658 #else |
657 return false; | 659 return false; |
658 #endif | 660 #endif |
659 } | 661 } |
660 | 662 |
661 } // namespace extensions | 663 } // namespace extensions |
OLD | NEW |