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

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

Issue 2855123004: MD Settings: hide browsing history-related rows for supervised users (Closed)
Patch Set: comment Created 3 years, 7 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 d9eddff96efbbc167d1f50c7cef79dcd2e61a5b4..e3e69892bce61a7865cc3c2b403acb77078cab40 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
@@ -112,6 +112,8 @@ void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) {
#else
profile->IsOffTheRecord());
#endif
+
+ html_source->AddBoolean("isSupervised", profile->IsSupervised());
}
void AddA11yStrings(content::WebUIDataSource* html_source) {
@@ -351,8 +353,6 @@ void AddAppearanceStrings(content::WebUIDataSource* html_source,
};
AddLocalizedStringsBulk(html_source, localized_strings,
arraysize(localized_strings));
-
- html_source->AddBoolean("isSupervised", profile->IsSupervised());
}
#if defined(OS_CHROMEOS)

Powered by Google App Engine
This is Rietveld 408576698