| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 settings_private::PrefType::PREF_TYPE_STRING; | 89 settings_private::PrefType::PREF_TYPE_STRING; |
| 90 | 90 |
| 91 // Downloads settings. | 91 // Downloads settings. |
| 92 (*s_whitelist)["download.default_directory"] = | 92 (*s_whitelist)["download.default_directory"] = |
| 93 settings_private::PrefType::PREF_TYPE_STRING; | 93 settings_private::PrefType::PREF_TYPE_STRING; |
| 94 (*s_whitelist)["download.prompt_for_download"] = | 94 (*s_whitelist)["download.prompt_for_download"] = |
| 95 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 95 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 96 (*s_whitelist)["gdata.disabled"] = | 96 (*s_whitelist)["gdata.disabled"] = |
| 97 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 97 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 98 | 98 |
| 99 // Printing settings. |
| 100 (*s_whitelist)["local_discovery.notifications_enabled"] = |
| 101 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 102 |
| 99 (*s_whitelist)["enable_do_not_track"] = | 103 (*s_whitelist)["enable_do_not_track"] = |
| 100 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 104 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 101 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL; | 105 (*s_whitelist)["homepage"] = settings_private::PrefType::PREF_TYPE_URL; |
| 102 (*s_whitelist)["homepage_is_newtabpage"] = | 106 (*s_whitelist)["homepage_is_newtabpage"] = |
| 103 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 107 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
| 104 (*s_whitelist)["intl.app_locale"] = | 108 (*s_whitelist)["intl.app_locale"] = |
| 105 settings_private::PrefType::PREF_TYPE_STRING; | 109 settings_private::PrefType::PREF_TYPE_STRING; |
| 106 (*s_whitelist)["net.network_prediction_options"] = | 110 (*s_whitelist)["net.network_prediction_options"] = |
| 107 settings_private::PrefType::PREF_TYPE_NUMBER; | 111 settings_private::PrefType::PREF_TYPE_NUMBER; |
| 108 (*s_whitelist)["profile.password_manager_enabled"] = | 112 (*s_whitelist)["profile.password_manager_enabled"] = |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 | 633 |
| 630 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 634 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
| 631 #if defined(OS_CHROMEOS) | 635 #if defined(OS_CHROMEOS) |
| 632 return CrosSettings::Get()->IsCrosSettings(pref_name); | 636 return CrosSettings::Get()->IsCrosSettings(pref_name); |
| 633 #else | 637 #else |
| 634 return false; | 638 return false; |
| 635 #endif | 639 #endif |
| 636 } | 640 } |
| 637 | 641 |
| 638 } // namespace extensions | 642 } // namespace extensions |
| OLD | NEW |