| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 258 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 259 (*s_whitelist)[::prefs::kAccessibilityVirtualKeyboardEnabled] = | 259 (*s_whitelist)[::prefs::kAccessibilityVirtualKeyboardEnabled] = |
| 260 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 260 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 261 (*s_whitelist)[::prefs::kAccessibilityMonoAudioEnabled] = | 261 (*s_whitelist)[::prefs::kAccessibilityMonoAudioEnabled] = |
| 262 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 262 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 263 | 263 |
| 264 // Android Apps. | 264 // Android Apps. |
| 265 (*s_whitelist)[::prefs::kArcEnabled] = | 265 (*s_whitelist)[::prefs::kArcEnabled] = |
| 266 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 266 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 267 | 267 |
| 268 // Google Assistant. |
| 269 (*s_whitelist)[::prefs::kVoiceInteractionEnabled] = |
| 270 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 271 (*s_whitelist)[::prefs::kVoiceInteractionContextEnabled] = |
| 272 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 273 |
| 268 // Misc. | 274 // Misc. |
| 269 (*s_whitelist)[::prefs::kUse24HourClock] = | 275 (*s_whitelist)[::prefs::kUse24HourClock] = |
| 270 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 276 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 271 (*s_whitelist)[::prefs::kLanguagePreferredLanguages] = | 277 (*s_whitelist)[::prefs::kLanguagePreferredLanguages] = |
| 272 settings_private::PrefType::PREF_TYPE_STRING; | 278 settings_private::PrefType::PREF_TYPE_STRING; |
| 273 (*s_whitelist)[::prefs::kTapDraggingEnabled] = | 279 (*s_whitelist)[::prefs::kTapDraggingEnabled] = |
| 274 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 280 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 275 (*s_whitelist)[chromeos::kStatsReportingPref] = | 281 (*s_whitelist)[chromeos::kStatsReportingPref] = |
| 276 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 282 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 277 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] = | 283 (*s_whitelist)[chromeos::kAttestationForContentProtectionEnabled] = |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) | 795 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) |
| 790 ->GetExtensionControllingPref(pref_object.key); | 796 ->GetExtensionControllingPref(pref_object.key); |
| 791 if (extension_id.empty()) | 797 if (extension_id.empty()) |
| 792 return nullptr; | 798 return nullptr; |
| 793 | 799 |
| 794 return ExtensionRegistry::Get(profile_)->GetExtensionById( | 800 return ExtensionRegistry::Get(profile_)->GetExtensionById( |
| 795 extension_id, ExtensionRegistry::ENABLED); | 801 extension_id, ExtensionRegistry::ENABLED); |
| 796 } | 802 } |
| 797 | 803 |
| 798 } // namespace extensions | 804 } // namespace extensions |
| OLD | NEW |