| 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/extensions/settings_api_helpers.h" | 10 #include "chrome/browser/extensions/settings_api_helpers.h" |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] = | 272 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] = |
| 273 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 273 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 274 | 274 |
| 275 // Bluetooth & Internet settings. | 275 // Bluetooth & Internet settings. |
| 276 (*s_whitelist)[chromeos::kAllowBluetooth] = | 276 (*s_whitelist)[chromeos::kAllowBluetooth] = |
| 277 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 277 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 278 (*s_whitelist)[proxy_config::prefs::kUseSharedProxies] = | 278 (*s_whitelist)[proxy_config::prefs::kUseSharedProxies] = |
| 279 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 279 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 280 (*s_whitelist)[::prefs::kWakeOnWifiDarkConnect] = | 280 (*s_whitelist)[::prefs::kWakeOnWifiDarkConnect] = |
| 281 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 281 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 282 (*s_whitelist)[::chromeos::kSignedDataRoamingEnabled] = |
| 283 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 282 | 284 |
| 283 // Timezone settings. | 285 // Timezone settings. |
| 284 (*s_whitelist)[chromeos::kSystemTimezone] = | 286 (*s_whitelist)[chromeos::kSystemTimezone] = |
| 285 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 287 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 286 (*s_whitelist)[::prefs::kResolveTimezoneByGeolocation] = | 288 (*s_whitelist)[::prefs::kResolveTimezoneByGeolocation] = |
| 287 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 289 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 288 | 290 |
| 289 // Ash settings. | 291 // Ash settings. |
| 290 (*s_whitelist)[::prefs::kEnableStylusTools] = | 292 (*s_whitelist)[::prefs::kEnableStylusTools] = |
| 291 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 293 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) | 769 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) |
| 768 ->GetExtensionControllingPref(pref_object.key); | 770 ->GetExtensionControllingPref(pref_object.key); |
| 769 if (extension_id.empty()) | 771 if (extension_id.empty()) |
| 770 return nullptr; | 772 return nullptr; |
| 771 | 773 |
| 772 return ExtensionRegistry::Get(profile_)->GetExtensionById( | 774 return ExtensionRegistry::Get(profile_)->GetExtensionById( |
| 773 extension_id, ExtensionRegistry::ENABLED); | 775 extension_id, ExtensionRegistry::ENABLED); |
| 774 } | 776 } |
| 775 | 777 |
| 776 } // namespace extensions | 778 } // namespace extensions |
| OLD | NEW |