| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 (*s_whitelist)["settings.language.preferred_languages"] = | 213 (*s_whitelist)["settings.language.preferred_languages"] = |
| 214 settings_private::PrefType::PREF_TYPE_STRING; | 214 settings_private::PrefType::PREF_TYPE_STRING; |
| 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 |
| 224 // Input settings. |
| 225 (*s_whitelist)["settings.touchpad.enable_tap_to_click"] = |
| 226 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 227 (*s_whitelist)["settings.touchpad.natural_scroll"] = |
| 228 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 223 #else | 229 #else |
| 224 (*s_whitelist)["intl.accept_languages"] = | 230 (*s_whitelist)["intl.accept_languages"] = |
| 225 settings_private::PrefType::PREF_TYPE_STRING; | 231 settings_private::PrefType::PREF_TYPE_STRING; |
| 226 #endif | 232 #endif |
| 227 | 233 |
| 228 #if defined(GOOGLE_CHROME_BUILD) | 234 #if defined(GOOGLE_CHROME_BUILD) |
| 229 (*s_whitelist)["media_router.cloudservices.enabled"] = | 235 (*s_whitelist)["media_router.cloudservices.enabled"] = |
| 230 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 236 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 231 #endif // defined(GOOGLE_CHROME_BUILD) | 237 #endif // defined(GOOGLE_CHROME_BUILD) |
| 232 | 238 |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 575 |
| 570 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 576 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
| 571 #if defined(OS_CHROMEOS) | 577 #if defined(OS_CHROMEOS) |
| 572 return CrosSettings::Get()->IsCrosSettings(pref_name); | 578 return CrosSettings::Get()->IsCrosSettings(pref_name); |
| 573 #else | 579 #else |
| 574 return false; | 580 return false; |
| 575 #endif | 581 #endif |
| 576 } | 582 } |
| 577 | 583 |
| 578 } // namespace extensions | 584 } // namespace extensions |
| OLD | NEW |