| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 (*s_whitelist)[::prefs::kEnableStylusTools] = | 297 (*s_whitelist)[::prefs::kEnableStylusTools] = |
| 298 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 298 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 299 (*s_whitelist)[::prefs::kLaunchPaletteOnEjectEvent] = | 299 (*s_whitelist)[::prefs::kLaunchPaletteOnEjectEvent] = |
| 300 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 300 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 301 (*s_whitelist)[::prefs::kNoteTakingAppEnabledOnLockScreen] = | 301 (*s_whitelist)[::prefs::kNoteTakingAppEnabledOnLockScreen] = |
| 302 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 302 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 303 (*s_whitelist)[ash::prefs::kNightLightEnabled] = | 303 (*s_whitelist)[ash::prefs::kNightLightEnabled] = |
| 304 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 304 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 305 (*s_whitelist)[ash::prefs::kNightLightTemperature] = | 305 (*s_whitelist)[ash::prefs::kNightLightTemperature] = |
| 306 settings_private::PrefType::PREF_TYPE_NUMBER; | 306 settings_private::PrefType::PREF_TYPE_NUMBER; |
| 307 (*s_whitelist)[ash::prefs::kNightLightScheduleType] = |
| 308 settings_private::PrefType::PREF_TYPE_NUMBER; |
| 309 (*s_whitelist)[ash::prefs::kNightLightCustomStartTime] = |
| 310 settings_private::PrefType::PREF_TYPE_NUMBER; |
| 311 (*s_whitelist)[ash::prefs::kNightLightCustomEndTime] = |
| 312 settings_private::PrefType::PREF_TYPE_NUMBER; |
| 307 | 313 |
| 308 // Input method settings. | 314 // Input method settings. |
| 309 (*s_whitelist)[::prefs::kLanguagePreloadEngines] = | 315 (*s_whitelist)[::prefs::kLanguagePreloadEngines] = |
| 310 settings_private::PrefType::PREF_TYPE_STRING; | 316 settings_private::PrefType::PREF_TYPE_STRING; |
| 311 (*s_whitelist)[::prefs::kLanguageEnabledExtensionImes] = | 317 (*s_whitelist)[::prefs::kLanguageEnabledExtensionImes] = |
| 312 settings_private::PrefType::PREF_TYPE_STRING; | 318 settings_private::PrefType::PREF_TYPE_STRING; |
| 313 | 319 |
| 314 // Device settings. | 320 // Device settings. |
| 315 (*s_whitelist)[::prefs::kTapToClickEnabled] = | 321 (*s_whitelist)[::prefs::kTapToClickEnabled] = |
| 316 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 322 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) | 789 ExtensionPrefValueMapFactory::GetForBrowserContext(profile_) |
| 784 ->GetExtensionControllingPref(pref_object.key); | 790 ->GetExtensionControllingPref(pref_object.key); |
| 785 if (extension_id.empty()) | 791 if (extension_id.empty()) |
| 786 return nullptr; | 792 return nullptr; |
| 787 | 793 |
| 788 return ExtensionRegistry::Get(profile_)->GetExtensionById( | 794 return ExtensionRegistry::Get(profile_)->GetExtensionById( |
| 789 extension_id, ExtensionRegistry::ENABLED); | 795 extension_id, ExtensionRegistry::ENABLED); |
| 790 } | 796 } |
| 791 | 797 |
| 792 } // namespace extensions | 798 } // namespace extensions |
| OLD | NEW |