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

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: List population 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 (*s_whitelist)["browser.clear_data.passwords"] = 102 (*s_whitelist)["browser.clear_data.passwords"] =
103 settings_private::PrefType::PREF_TYPE_BOOLEAN; 103 settings_private::PrefType::PREF_TYPE_BOOLEAN;
104 (*s_whitelist)["browser.clear_data.form_data"] = 104 (*s_whitelist)["browser.clear_data.form_data"] =
105 settings_private::PrefType::PREF_TYPE_BOOLEAN; 105 settings_private::PrefType::PREF_TYPE_BOOLEAN;
106 (*s_whitelist)["browser.clear_data.hosted_apps_data"] = 106 (*s_whitelist)["browser.clear_data.hosted_apps_data"] =
107 settings_private::PrefType::PREF_TYPE_BOOLEAN; 107 settings_private::PrefType::PREF_TYPE_BOOLEAN;
108 (*s_whitelist)["browser.clear_data.content_licenses"] = 108 (*s_whitelist)["browser.clear_data.content_licenses"] =
109 settings_private::PrefType::PREF_TYPE_BOOLEAN; 109 settings_private::PrefType::PREF_TYPE_BOOLEAN;
110 (*s_whitelist)["browser.clear_data.time_period"] = 110 (*s_whitelist)["browser.clear_data.time_period"] =
111 settings_private::PrefType::PREF_TYPE_NUMBER; 111 settings_private::PrefType::PREF_TYPE_NUMBER;
112 112 (*s_whitelist)["profile.default_content_setting_values.cookies"] =
113 settings_private::PrefType::PREF_TYPE_NUMBER;
114 (*s_whitelist)["profile.default_content_setting_values.fullscreen"] =
115 settings_private::PrefType::PREF_TYPE_NUMBER;
116 (*s_whitelist)["profile.default_content_setting_values.geolocation"] =
117 settings_private::PrefType::PREF_TYPE_NUMBER;
118 (*s_whitelist)["profile.default_content_setting_values.javascript"] =
119 settings_private::PrefType::PREF_TYPE_NUMBER;
120 (*s_whitelist)["profile.default_content_setting_values.media_stream_camera"] =
121 settings_private::PrefType::PREF_TYPE_NUMBER;
122 (*s_whitelist)["profile.default_content_setting_values.media_stream_mic"] =
123 settings_private::PrefType::PREF_TYPE_NUMBER;
124 (*s_whitelist)["profile.default_content_setting_values.notifications"] =
125 settings_private::PrefType::PREF_TYPE_NUMBER;
126 (*s_whitelist)["profile.default_content_setting_values.popups"] =
Finnur 2015/10/22 14:51:45 The changes above this line are purely alphabetica
127 settings_private::PrefType::PREF_TYPE_NUMBER;
128 (*s_whitelist)["profile.content_settings.exceptions.cookies"] =
129 settings_private::PrefType::PREF_TYPE_DICTIONARY;
130 (*s_whitelist)["profile.content_settings.exceptions.fullscreen"] =
131 settings_private::PrefType::PREF_TYPE_DICTIONARY;
132 (*s_whitelist)["profile.content_settings.exceptions.geolocation"] =
133 settings_private::PrefType::PREF_TYPE_DICTIONARY;
134 (*s_whitelist)["profile.content_settings.exceptions.javascript"] =
135 settings_private::PrefType::PREF_TYPE_DICTIONARY;
136 (*s_whitelist)["profile.content_settings.exceptions.media_stream_camera"] =
137 settings_private::PrefType::PREF_TYPE_DICTIONARY;
138 (*s_whitelist)["profile.content_settings.exceptions.media_stream_mic"] =
139 settings_private::PrefType::PREF_TYPE_DICTIONARY;
140 (*s_whitelist)["profile.content_settings.exceptions.notifications"] =
141 settings_private::PrefType::PREF_TYPE_DICTIONARY;
142 (*s_whitelist)["profile.content_settings.exceptions.popups"] =
143 settings_private::PrefType::PREF_TYPE_DICTIONARY;
113 #if defined(OS_CHROMEOS) 144 #if defined(OS_CHROMEOS)
114 (*s_whitelist)["cros.accounts.allowBWSI"] = 145 (*s_whitelist)["cros.accounts.allowBWSI"] =
115 settings_private::PrefType::PREF_TYPE_BOOLEAN; 146 settings_private::PrefType::PREF_TYPE_BOOLEAN;
116 (*s_whitelist)["cros.accounts.supervisedUsersEnabled"] = 147 (*s_whitelist)["cros.accounts.supervisedUsersEnabled"] =
117 settings_private::PrefType::PREF_TYPE_BOOLEAN; 148 settings_private::PrefType::PREF_TYPE_BOOLEAN;
118 (*s_whitelist)["cros.accounts.showUserNamesOnSignIn"] = 149 (*s_whitelist)["cros.accounts.showUserNamesOnSignIn"] =
119 settings_private::PrefType::PREF_TYPE_BOOLEAN; 150 settings_private::PrefType::PREF_TYPE_BOOLEAN;
120 (*s_whitelist)["cros.accounts.allowGuest"] = 151 (*s_whitelist)["cros.accounts.allowGuest"] =
121 settings_private::PrefType::PREF_TYPE_BOOLEAN; 152 settings_private::PrefType::PREF_TYPE_BOOLEAN;
122 (*s_whitelist)["cros.accounts.users"] = 153 (*s_whitelist)["cros.accounts.users"] =
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 514
484 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 515 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
485 #if defined(OS_CHROMEOS) 516 #if defined(OS_CHROMEOS)
486 return CrosSettings::Get()->IsCrosSettings(pref_name); 517 return CrosSettings::Get()->IsCrosSettings(pref_name);
487 #else 518 #else
488 return false; 519 return false;
489 #endif 520 #endif
490 } 521 }
491 522
492 } // namespace extensions 523 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698