| 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.launch_note_app_on_eject_event"] = |
| 261 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 260 | 262 |
| 261 // Device settings. | 263 // Device settings. |
| 262 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = | 264 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = |
| 263 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 265 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 264 (*s_whitelist)["settings.touchpad.natural_scroll"] = | 266 (*s_whitelist)["settings.touchpad.natural_scroll"] = |
| 265 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 267 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 266 (*s_whitelist)["settings.touchpad.sensitivity2"] = | 268 (*s_whitelist)["settings.touchpad.sensitivity2"] = |
| 267 settings_private::PrefType::PREF_TYPE_NUMBER; | 269 settings_private::PrefType::PREF_TYPE_NUMBER; |
| 268 (*s_whitelist)["settings.mouse.primary_right"] = | 270 (*s_whitelist)["settings.mouse.primary_right"] = |
| 269 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 271 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 | 651 |
| 650 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 652 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
| 651 #if defined(OS_CHROMEOS) | 653 #if defined(OS_CHROMEOS) |
| 652 return CrosSettings::Get()->IsCrosSettings(pref_name); | 654 return CrosSettings::Get()->IsCrosSettings(pref_name); |
| 653 #else | 655 #else |
| 654 return false; | 656 return false; |
| 655 #endif | 657 #endif |
| 656 } | 658 } |
| 657 | 659 |
| 658 } // namespace extensions | 660 } // namespace extensions |
| OLD | NEW |