Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: chrome/browser/extensions/api/settings_private/prefs_util.cc

Issue 2472413003: MD Settings: remove a bunch of unneeded profile.content_settings.* pref objects from prefs_util.cc (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 settings_private::PrefType::PREF_TYPE_BOOLEAN; 173 settings_private::PrefType::PREF_TYPE_BOOLEAN;
174 (*s_whitelist)[browsing_data::prefs::kDeleteFormData] = 174 (*s_whitelist)[browsing_data::prefs::kDeleteFormData] =
175 settings_private::PrefType::PREF_TYPE_BOOLEAN; 175 settings_private::PrefType::PREF_TYPE_BOOLEAN;
176 (*s_whitelist)[browsing_data::prefs::kDeleteHostedAppsData] = 176 (*s_whitelist)[browsing_data::prefs::kDeleteHostedAppsData] =
177 settings_private::PrefType::PREF_TYPE_BOOLEAN; 177 settings_private::PrefType::PREF_TYPE_BOOLEAN;
178 (*s_whitelist)[browsing_data::prefs::kDeleteMediaLicenses] = 178 (*s_whitelist)[browsing_data::prefs::kDeleteMediaLicenses] =
179 settings_private::PrefType::PREF_TYPE_BOOLEAN; 179 settings_private::PrefType::PREF_TYPE_BOOLEAN;
180 (*s_whitelist)[browsing_data::prefs::kDeleteTimePeriod] = 180 (*s_whitelist)[browsing_data::prefs::kDeleteTimePeriod] =
181 settings_private::PrefType::PREF_TYPE_NUMBER; 181 settings_private::PrefType::PREF_TYPE_NUMBER;
182 182
183 // Content settings. TODO(finnur/dschuyler): Deprecate?
184 (*s_whitelist)["profile.default_content_setting_values.cookies"] =
185 settings_private::PrefType::PREF_TYPE_NUMBER;
186 (*s_whitelist)["profile.default_content_setting_values.fullscreen"] =
187 settings_private::PrefType::PREF_TYPE_NUMBER;
188 (*s_whitelist)["profile.default_content_setting_values.geolocation"] =
189 settings_private::PrefType::PREF_TYPE_NUMBER;
190 (*s_whitelist)["profile.default_content_setting_values.images"] =
191 settings_private::PrefType::PREF_TYPE_NUMBER;
192 (*s_whitelist)["profile.default_content_setting_values.javascript"] =
193 settings_private::PrefType::PREF_TYPE_NUMBER;
194 (*s_whitelist)["profile.default_content_setting_values.media_stream_camera"] =
195 settings_private::PrefType::PREF_TYPE_NUMBER;
196 (*s_whitelist)["profile.default_content_setting_values.media_stream_mic"] =
197 settings_private::PrefType::PREF_TYPE_NUMBER;
198 (*s_whitelist)["profile.default_content_setting_values.notifications"] =
199 settings_private::PrefType::PREF_TYPE_NUMBER;
200 (*s_whitelist)["profile.default_content_setting_values.popups"] =
201 settings_private::PrefType::PREF_TYPE_NUMBER;
202 (*s_whitelist)["profile.content_settings.exceptions.cookies"] =
203 settings_private::PrefType::PREF_TYPE_DICTIONARY;
204 (*s_whitelist)["profile.content_settings.exceptions.fullscreen"] =
205 settings_private::PrefType::PREF_TYPE_DICTIONARY;
206 (*s_whitelist)["profile.content_settings.exceptions.geolocation"] =
207 settings_private::PrefType::PREF_TYPE_DICTIONARY;
208 (*s_whitelist)["profile.content_settings.exceptions.images"] =
209 settings_private::PrefType::PREF_TYPE_DICTIONARY;
210 (*s_whitelist)["profile.content_settings.exceptions.javascript"] =
211 settings_private::PrefType::PREF_TYPE_DICTIONARY;
212 (*s_whitelist)["profile.content_settings.exceptions.media_stream_camera"] =
213 settings_private::PrefType::PREF_TYPE_DICTIONARY;
214 (*s_whitelist)["profile.content_settings.exceptions.media_stream_mic"] =
215 settings_private::PrefType::PREF_TYPE_DICTIONARY;
216 (*s_whitelist)["profile.content_settings.exceptions.notifications"] =
217 settings_private::PrefType::PREF_TYPE_DICTIONARY;
218 (*s_whitelist)["profile.content_settings.exceptions.popups"] =
219 settings_private::PrefType::PREF_TYPE_DICTIONARY;
220
221 #if defined(OS_CHROMEOS) 183 #if defined(OS_CHROMEOS)
222 (*s_whitelist)[chromeos::kAccountsPrefAllowGuest] = 184 (*s_whitelist)[chromeos::kAccountsPrefAllowGuest] =
223 settings_private::PrefType::PREF_TYPE_BOOLEAN; 185 settings_private::PrefType::PREF_TYPE_BOOLEAN;
224 (*s_whitelist)[chromeos::kAccountsPrefSupervisedUsersEnabled] = 186 (*s_whitelist)[chromeos::kAccountsPrefSupervisedUsersEnabled] =
225 settings_private::PrefType::PREF_TYPE_BOOLEAN; 187 settings_private::PrefType::PREF_TYPE_BOOLEAN;
226 (*s_whitelist)[chromeos::kAccountsPrefShowUserNamesOnSignIn] = 188 (*s_whitelist)[chromeos::kAccountsPrefShowUserNamesOnSignIn] =
227 settings_private::PrefType::PREF_TYPE_BOOLEAN; 189 settings_private::PrefType::PREF_TYPE_BOOLEAN;
228 (*s_whitelist)[chromeos::kAccountsPrefAllowNewUser] = 190 (*s_whitelist)[chromeos::kAccountsPrefAllowNewUser] =
229 settings_private::PrefType::PREF_TYPE_BOOLEAN; 191 settings_private::PrefType::PREF_TYPE_BOOLEAN;
230 (*s_whitelist)[chromeos::kAccountsPrefUsers] = 192 (*s_whitelist)[chromeos::kAccountsPrefUsers] =
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 655
694 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 656 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
695 #if defined(OS_CHROMEOS) 657 #if defined(OS_CHROMEOS)
696 return CrosSettings::Get()->IsCrosSettings(pref_name); 658 return CrosSettings::Get()->IsCrosSettings(pref_name);
697 #else 659 #else
698 return false; 660 return false;
699 #endif 661 #endif
700 } 662 }
701 663
702 } // namespace extensions 664 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698