| 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 (*s_whitelist)[::prefs::kHardwareAccelerationModeEnabled] = | 299 (*s_whitelist)[::prefs::kHardwareAccelerationModeEnabled] = |
| 300 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 300 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 301 | 301 |
| 302 // Import data | 302 // Import data |
| 303 (*s_whitelist)[::prefs::kImportAutofillFormData] = | 303 (*s_whitelist)[::prefs::kImportAutofillFormData] = |
| 304 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 304 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 305 (*s_whitelist)[::prefs::kImportBookmarks] = | 305 (*s_whitelist)[::prefs::kImportBookmarks] = |
| 306 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 306 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 307 (*s_whitelist)[::prefs::kImportHistory] = | 307 (*s_whitelist)[::prefs::kImportHistory] = |
| 308 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 308 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 309 (*s_whitelist)[::prefs::kImportHomepage] = | |
| 310 settings_private::PrefType::PREF_TYPE_BOOLEAN; | |
| 311 (*s_whitelist)[::prefs::kImportSavedPasswords] = | 309 (*s_whitelist)[::prefs::kImportSavedPasswords] = |
| 312 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 310 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 313 (*s_whitelist)[::prefs::kImportSearchEngine] = | 311 (*s_whitelist)[::prefs::kImportSearchEngine] = |
| 314 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 312 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 315 #endif | 313 #endif |
| 316 | 314 |
| 317 // Proxy settings. | 315 // Proxy settings. |
| 318 (*s_whitelist)[proxy_config::prefs::kProxy] = | 316 (*s_whitelist)[proxy_config::prefs::kProxy] = |
| 319 settings_private::PrefType::PREF_TYPE_DICTIONARY; | 317 settings_private::PrefType::PREF_TYPE_DICTIONARY; |
| 320 | 318 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 | 671 |
| 674 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 672 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
| 675 #if defined(OS_CHROMEOS) | 673 #if defined(OS_CHROMEOS) |
| 676 return CrosSettings::Get()->IsCrosSettings(pref_name); | 674 return CrosSettings::Get()->IsCrosSettings(pref_name); |
| 677 #else | 675 #else |
| 678 return false; | 676 return false; |
| 679 #endif | 677 #endif |
| 680 } | 678 } |
| 681 | 679 |
| 682 } // namespace extensions | 680 } // namespace extensions |
| OLD | NEW |