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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 (*s_whitelist)["browser.clear_data.cache"] = | 142 (*s_whitelist)["browser.clear_data.cache"] = |
143 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 143 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
144 (*s_whitelist)["browser.clear_data.cookies"] = | 144 (*s_whitelist)["browser.clear_data.cookies"] = |
145 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 145 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
146 (*s_whitelist)["browser.clear_data.passwords"] = | 146 (*s_whitelist)["browser.clear_data.passwords"] = |
147 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 147 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
148 (*s_whitelist)["browser.clear_data.form_data"] = | 148 (*s_whitelist)["browser.clear_data.form_data"] = |
149 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 149 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
150 (*s_whitelist)["browser.clear_data.hosted_apps_data"] = | 150 (*s_whitelist)["browser.clear_data.hosted_apps_data"] = |
151 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 151 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
152 (*s_whitelist)["browser.clear_data.content_licenses"] = | 152 (*s_whitelist)["browser.clear_data.media_licenses"] = |
153 settings_private::PrefType::PREF_TYPE_BOOLEAN; | 153 settings_private::PrefType::PREF_TYPE_BOOLEAN; |
154 (*s_whitelist)["browser.clear_data.time_period"] = | 154 (*s_whitelist)["browser.clear_data.time_period"] = |
155 settings_private::PrefType::PREF_TYPE_NUMBER; | 155 settings_private::PrefType::PREF_TYPE_NUMBER; |
156 (*s_whitelist)["profile.default_content_setting_values.cookies"] = | 156 (*s_whitelist)["profile.default_content_setting_values.cookies"] = |
157 settings_private::PrefType::PREF_TYPE_NUMBER; | 157 settings_private::PrefType::PREF_TYPE_NUMBER; |
158 (*s_whitelist)["profile.default_content_setting_values.fullscreen"] = | 158 (*s_whitelist)["profile.default_content_setting_values.fullscreen"] = |
159 settings_private::PrefType::PREF_TYPE_NUMBER; | 159 settings_private::PrefType::PREF_TYPE_NUMBER; |
160 (*s_whitelist)["profile.default_content_setting_values.geolocation"] = | 160 (*s_whitelist)["profile.default_content_setting_values.geolocation"] = |
161 settings_private::PrefType::PREF_TYPE_NUMBER; | 161 settings_private::PrefType::PREF_TYPE_NUMBER; |
162 (*s_whitelist)["profile.default_content_setting_values.images"] = | 162 (*s_whitelist)["profile.default_content_setting_values.images"] = |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 | 637 |
638 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { | 638 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { |
639 #if defined(OS_CHROMEOS) | 639 #if defined(OS_CHROMEOS) |
640 return CrosSettings::Get()->IsCrosSettings(pref_name); | 640 return CrosSettings::Get()->IsCrosSettings(pref_name); |
641 #else | 641 #else |
642 return false; | 642 return false; |
643 #endif | 643 #endif |
644 } | 644 } |
645 | 645 |
646 } // namespace extensions | 646 } // namespace extensions |
OLD | NEW |