| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] = | 215 (*s_whitelist)["settings.touchpad.enable_tap_dragging"] = |
| 216 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 216 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 217 (*s_whitelist)["cros.metrics.reportingEnabled"] = | 217 (*s_whitelist)["cros.metrics.reportingEnabled"] = |
| 218 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 218 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 219 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = | 219 (*s_whitelist)["cros.device.attestation_for_content_protection_enabled"] = |
| 220 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 220 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 221 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = | 221 (*s_whitelist)["settings.internet.wake_on_wifi_darkconnect"] = |
| 222 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 222 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 223 (*s_whitelist)["settings.enable_screen_lock"] = | 223 (*s_whitelist)["settings.enable_screen_lock"] = |
| 224 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 224 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 225 |
| 226 // Input settings. |
| 227 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = |
| 228 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 229 (*s_whitelist)["settings.touchpad.natural_scroll"] = |
| 230 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 225 #else | 231 #else |
| 226 (*s_whitelist)["intl.accept_languages"] = | 232 (*s_whitelist)["intl.accept_languages"] = |
| 227 settings_private::PrefType::PREF_TYPE_STRING; | 233 settings_private::PrefType::PREF_TYPE_STRING; |
| 228 #endif | 234 #endif |
| 229 | 235 |
| 230 #if defined(GOOGLE_CHROME_BUILD) | 236 #if defined(GOOGLE_CHROME_BUILD) |
| 231 (*s_whitelist)["media_router.cloudservices.enabled"] = | 237 (*s_whitelist)["media_router.cloudservices.enabled"] = |
| 232 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 238 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 233 #endif // defined(GOOGLE_CHROME_BUILD) | 239 #endif // defined(GOOGLE_CHROME_BUILD) |
| 234 | 240 |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 | 577 |
| 572 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 578 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
| 573 #if defined(OS_CHROMEOS) | 579 #if defined(OS_CHROMEOS) |
| 574 return CrosSettings::Get()->IsCrosSettings(pref_name); | 580 return CrosSettings::Get()->IsCrosSettings(pref_name); |
| 575 #else | 581 #else |
| 576 return false; | 582 return false; |
| 577 #endif | 583 #endif |
| 578 } | 584 } |
| 579 | 585 |
| 580 } // namespace extensions | 586 } // namespace extensions |
| OLD | NEW |