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

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

Issue 1372053002: Flesh out the location-page class to make it more general. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 (*s_whitelist)["browser.clear_data.passwords"] = 109 (*s_whitelist)["browser.clear_data.passwords"] =
110 settings_private::PrefType::PREF_TYPE_BOOLEAN; 110 settings_private::PrefType::PREF_TYPE_BOOLEAN;
111 (*s_whitelist)["browser.clear_data.form_data"] = 111 (*s_whitelist)["browser.clear_data.form_data"] =
112 settings_private::PrefType::PREF_TYPE_BOOLEAN; 112 settings_private::PrefType::PREF_TYPE_BOOLEAN;
113 (*s_whitelist)["browser.clear_data.hosted_apps_data"] = 113 (*s_whitelist)["browser.clear_data.hosted_apps_data"] =
114 settings_private::PrefType::PREF_TYPE_BOOLEAN; 114 settings_private::PrefType::PREF_TYPE_BOOLEAN;
115 (*s_whitelist)["browser.clear_data.content_licenses"] = 115 (*s_whitelist)["browser.clear_data.content_licenses"] =
116 settings_private::PrefType::PREF_TYPE_BOOLEAN; 116 settings_private::PrefType::PREF_TYPE_BOOLEAN;
117 (*s_whitelist)["browser.clear_data.time_period"] = 117 (*s_whitelist)["browser.clear_data.time_period"] =
118 settings_private::PrefType::PREF_TYPE_NUMBER; 118 settings_private::PrefType::PREF_TYPE_NUMBER;
119 (*s_whitelist)["profile.default_content_setting_values.cookies"] =
120 settings_private::PrefType::PREF_TYPE_NUMBER;
121 (*s_whitelist)["profile.default_content_setting_values.fullscreen"] =
122 settings_private::PrefType::PREF_TYPE_NUMBER;
123 (*s_whitelist)["profile.default_content_setting_values.geolocation"] =
124 settings_private::PrefType::PREF_TYPE_NUMBER;
125 (*s_whitelist)["profile.default_content_setting_values.javascript"] =
126 settings_private::PrefType::PREF_TYPE_NUMBER;
127 (*s_whitelist)["profile.default_content_setting_values.media_stream_camera"] =
128 settings_private::PrefType::PREF_TYPE_NUMBER;
129 (*s_whitelist)["profile.default_content_setting_values.media_stream_mic"] =
130 settings_private::PrefType::PREF_TYPE_NUMBER;
131 (*s_whitelist)["profile.default_content_setting_values.notifications"] =
132 settings_private::PrefType::PREF_TYPE_NUMBER;
133 (*s_whitelist)["profile.default_content_setting_values.popups"] =
134 settings_private::PrefType::PREF_TYPE_NUMBER;
135 (*s_whitelist)["profile.content_settings.exceptions.cookies"] =
136 settings_private::PrefType::PREF_TYPE_DICTIONARY;
137 (*s_whitelist)["profile.content_settings.exceptions.fullscreen"] =
138 settings_private::PrefType::PREF_TYPE_DICTIONARY;
139 (*s_whitelist)["profile.content_settings.exceptions.geolocation"] =
140 settings_private::PrefType::PREF_TYPE_DICTIONARY;
141 (*s_whitelist)["profile.content_settings.exceptions.javascript"] =
142 settings_private::PrefType::PREF_TYPE_DICTIONARY;
143 (*s_whitelist)["profile.content_settings.exceptions.media_stream_camera"] =
144 settings_private::PrefType::PREF_TYPE_DICTIONARY;
145 (*s_whitelist)["profile.content_settings.exceptions.media_stream_mic"] =
146 settings_private::PrefType::PREF_TYPE_DICTIONARY;
147 (*s_whitelist)["profile.content_settings.exceptions.notifications"] =
148 settings_private::PrefType::PREF_TYPE_DICTIONARY;
149 (*s_whitelist)["profile.content_settings.exceptions.popups"] =
150 settings_private::PrefType::PREF_TYPE_DICTIONARY;
119 151
120 // Web content settings. 152 // Web content settings.
121 (*s_whitelist)["webkit.webprefs.default_font_size"] = 153 (*s_whitelist)["webkit.webprefs.default_font_size"] =
122 settings_private::PrefType::PREF_TYPE_NUMBER; 154 settings_private::PrefType::PREF_TYPE_NUMBER;
123 (*s_whitelist)["webkit.webprefs.minimum_font_size"] = 155 (*s_whitelist)["webkit.webprefs.minimum_font_size"] =
124 settings_private::PrefType::PREF_TYPE_NUMBER; 156 settings_private::PrefType::PREF_TYPE_NUMBER;
125 (*s_whitelist)["webkit.webprefs.fonts.fixed.Zyyy"] = 157 (*s_whitelist)["webkit.webprefs.fonts.fixed.Zyyy"] =
126 settings_private::PrefType::PREF_TYPE_STRING; 158 settings_private::PrefType::PREF_TYPE_STRING;
127 (*s_whitelist)["webkit.webprefs.fonts.sansserif.Zyyy"] = 159 (*s_whitelist)["webkit.webprefs.fonts.sansserif.Zyyy"] =
128 settings_private::PrefType::PREF_TYPE_STRING; 160 settings_private::PrefType::PREF_TYPE_STRING;
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 550
519 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 551 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
520 #if defined(OS_CHROMEOS) 552 #if defined(OS_CHROMEOS)
521 return CrosSettings::Get()->IsCrosSettings(pref_name); 553 return CrosSettings::Get()->IsCrosSettings(pref_name);
522 #else 554 #else
523 return false; 555 return false;
524 #endif 556 #endif
525 } 557 }
526 558
527 } // namespace extensions 559 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698