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

Unified Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2426863002: MD Settings: don't allow supervised users to switch to GTK+ theme (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index f90b41cf10479841170466ece8a57f66b58d1d00..2999d1841e0e7f4720cb8b026a3f3a4fdfca5c1c 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -253,7 +253,8 @@ void AddAccountUITweaksStrings(content::WebUIDataSource* html_source,
}
#endif
-void AddAppearanceStrings(content::WebUIDataSource* html_source) {
+void AddAppearanceStrings(content::WebUIDataSource* html_source,
+ Profile* profile) {
LocalizedString localized_strings[] = {
{"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
{"exampleDotCom", IDS_SETTINGS_EXAMPLE_DOT_COM},
@@ -284,6 +285,8 @@ void AddAppearanceStrings(content::WebUIDataSource* html_source) {
};
AddLocalizedStringsBulk(html_source, localized_strings,
arraysize(localized_strings));
+
+ html_source->AddBoolean("isSupervised", profile->IsSupervised());
}
#if defined(OS_CHROMEOS)
@@ -1694,7 +1697,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source,
#if defined(OS_CHROMEOS)
AddAccountUITweaksStrings(html_source, profile);
#endif
- AddAppearanceStrings(html_source);
+ AddAppearanceStrings(html_source, profile);
#if defined(OS_CHROMEOS)
AddBluetoothStrings(html_source);
#endif

Powered by Google App Engine
This is Rietveld 408576698