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