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

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

Issue 1841973004: [MD settings] theme name shown in sub-label, wallpaper chrome os only (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review changes Created 4 years, 8 months 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 | chrome/browser/resources/settings/appearance_page/appearance_page.html » ('j') | 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 s_whitelist = new PrefsUtil::TypedPrefMap(); 63 s_whitelist = new PrefsUtil::TypedPrefMap();
64 (*s_whitelist)["alternate_error_pages.enabled"] = 64 (*s_whitelist)["alternate_error_pages.enabled"] =
65 settings_private::PrefType::PREF_TYPE_BOOLEAN; 65 settings_private::PrefType::PREF_TYPE_BOOLEAN;
66 (*s_whitelist)["autofill.enabled"] = 66 (*s_whitelist)["autofill.enabled"] =
67 settings_private::PrefType::PREF_TYPE_BOOLEAN; 67 settings_private::PrefType::PREF_TYPE_BOOLEAN;
68 (*s_whitelist)["bookmark_bar.show_on_all_tabs"] = 68 (*s_whitelist)["bookmark_bar.show_on_all_tabs"] =
69 settings_private::PrefType::PREF_TYPE_BOOLEAN; 69 settings_private::PrefType::PREF_TYPE_BOOLEAN;
70 (*s_whitelist)["browser.show_home_button"] = 70 (*s_whitelist)["browser.show_home_button"] =
71 settings_private::PrefType::PREF_TYPE_BOOLEAN; 71 settings_private::PrefType::PREF_TYPE_BOOLEAN;
72 72
73 // Appearance settings.
74 (*s_whitelist)["extensions.theme.id"] =
75 settings_private::PrefType::PREF_TYPE_STRING;
76 (*s_whitelist)["webkit.webprefs.default_font_size"] =
77 settings_private::PrefType::PREF_TYPE_NUMBER;
78 (*s_whitelist)["webkit.webprefs.minimum_font_size"] =
79 settings_private::PrefType::PREF_TYPE_NUMBER;
80 (*s_whitelist)["webkit.webprefs.fonts.fixed.Zyyy"] =
81 settings_private::PrefType::PREF_TYPE_STRING;
82 (*s_whitelist)["webkit.webprefs.fonts.sansserif.Zyyy"] =
83 settings_private::PrefType::PREF_TYPE_STRING;
84 (*s_whitelist)["webkit.webprefs.fonts.serif.Zyyy"] =
85 settings_private::PrefType::PREF_TYPE_STRING;
86 (*s_whitelist)["webkit.webprefs.fonts.standard.Zyyy"] =
87 settings_private::PrefType::PREF_TYPE_STRING;
88 (*s_whitelist)["intl.charset_default"] =
89 settings_private::PrefType::PREF_TYPE_STRING;
90
73 // Downloads settings. 91 // Downloads settings.
74 (*s_whitelist)["download.default_directory"] = 92 (*s_whitelist)["download.default_directory"] =
75 settings_private::PrefType::PREF_TYPE_STRING; 93 settings_private::PrefType::PREF_TYPE_STRING;
76 (*s_whitelist)["download.prompt_for_download"] = 94 (*s_whitelist)["download.prompt_for_download"] =
77 settings_private::PrefType::PREF_TYPE_BOOLEAN; 95 settings_private::PrefType::PREF_TYPE_BOOLEAN;
78 (*s_whitelist)["gdata.disabled"] = 96 (*s_whitelist)["gdata.disabled"] =
79 settings_private::PrefType::PREF_TYPE_BOOLEAN; 97 settings_private::PrefType::PREF_TYPE_BOOLEAN;
80 98
81 (*s_whitelist)["enable_do_not_track"] = 99 (*s_whitelist)["enable_do_not_track"] =
82 settings_private::PrefType::PREF_TYPE_BOOLEAN; 100 settings_private::PrefType::PREF_TYPE_BOOLEAN;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 settings_private::PrefType::PREF_TYPE_DICTIONARY; 177 settings_private::PrefType::PREF_TYPE_DICTIONARY;
160 (*s_whitelist)["profile.content_settings.exceptions.media_stream_camera"] = 178 (*s_whitelist)["profile.content_settings.exceptions.media_stream_camera"] =
161 settings_private::PrefType::PREF_TYPE_DICTIONARY; 179 settings_private::PrefType::PREF_TYPE_DICTIONARY;
162 (*s_whitelist)["profile.content_settings.exceptions.media_stream_mic"] = 180 (*s_whitelist)["profile.content_settings.exceptions.media_stream_mic"] =
163 settings_private::PrefType::PREF_TYPE_DICTIONARY; 181 settings_private::PrefType::PREF_TYPE_DICTIONARY;
164 (*s_whitelist)["profile.content_settings.exceptions.notifications"] = 182 (*s_whitelist)["profile.content_settings.exceptions.notifications"] =
165 settings_private::PrefType::PREF_TYPE_DICTIONARY; 183 settings_private::PrefType::PREF_TYPE_DICTIONARY;
166 (*s_whitelist)["profile.content_settings.exceptions.popups"] = 184 (*s_whitelist)["profile.content_settings.exceptions.popups"] =
167 settings_private::PrefType::PREF_TYPE_DICTIONARY; 185 settings_private::PrefType::PREF_TYPE_DICTIONARY;
168 186
169 // Web content settings.
170 (*s_whitelist)["webkit.webprefs.default_font_size"] =
171 settings_private::PrefType::PREF_TYPE_NUMBER;
172 (*s_whitelist)["webkit.webprefs.minimum_font_size"] =
173 settings_private::PrefType::PREF_TYPE_NUMBER;
174 (*s_whitelist)["webkit.webprefs.fonts.fixed.Zyyy"] =
175 settings_private::PrefType::PREF_TYPE_STRING;
176 (*s_whitelist)["webkit.webprefs.fonts.sansserif.Zyyy"] =
177 settings_private::PrefType::PREF_TYPE_STRING;
178 (*s_whitelist)["webkit.webprefs.fonts.serif.Zyyy"] =
179 settings_private::PrefType::PREF_TYPE_STRING;
180 (*s_whitelist)["webkit.webprefs.fonts.standard.Zyyy"] =
181 settings_private::PrefType::PREF_TYPE_STRING;
182 (*s_whitelist)["intl.charset_default"] =
183 settings_private::PrefType::PREF_TYPE_STRING;
184
185 #if defined(OS_CHROMEOS) 187 #if defined(OS_CHROMEOS)
186 (*s_whitelist)["cros.accounts.allowBWSI"] = 188 (*s_whitelist)["cros.accounts.allowBWSI"] =
187 settings_private::PrefType::PREF_TYPE_BOOLEAN; 189 settings_private::PrefType::PREF_TYPE_BOOLEAN;
188 (*s_whitelist)["cros.accounts.supervisedUsersEnabled"] = 190 (*s_whitelist)["cros.accounts.supervisedUsersEnabled"] =
189 settings_private::PrefType::PREF_TYPE_BOOLEAN; 191 settings_private::PrefType::PREF_TYPE_BOOLEAN;
190 (*s_whitelist)["cros.accounts.showUserNamesOnSignIn"] = 192 (*s_whitelist)["cros.accounts.showUserNamesOnSignIn"] =
191 settings_private::PrefType::PREF_TYPE_BOOLEAN; 193 settings_private::PrefType::PREF_TYPE_BOOLEAN;
192 (*s_whitelist)["cros.accounts.allowGuest"] = 194 (*s_whitelist)["cros.accounts.allowGuest"] =
193 settings_private::PrefType::PREF_TYPE_BOOLEAN; 195 settings_private::PrefType::PREF_TYPE_BOOLEAN;
194 (*s_whitelist)["cros.accounts.users"] = 196 (*s_whitelist)["cros.accounts.users"] =
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 617
616 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) { 618 bool PrefsUtil::IsCrosSetting(const std::string& pref_name) {
617 #if defined(OS_CHROMEOS) 619 #if defined(OS_CHROMEOS)
618 return CrosSettings::Get()->IsCrosSettings(pref_name); 620 return CrosSettings::Get()->IsCrosSettings(pref_name);
619 #else 621 #else
620 return false; 622 return false;
621 #endif 623 #endif
622 } 624 }
623 625
624 } // namespace extensions 626 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/appearance_page/appearance_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698