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

Unified Diff: chrome/browser/ui/webui/settings/appearance_handler.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/appearance_handler.cc
diff --git a/chrome/browser/ui/webui/settings/appearance_handler.cc b/chrome/browser/ui/webui/settings/appearance_handler.cc
index eac391fb59af3c80e4d6d2e6c09e5d424344aa95..e08eae09bef4e5c127a2e40534b2fe5f720318fb 100644
--- a/chrome/browser/ui/webui/settings/appearance_handler.cc
+++ b/chrome/browser/ui/webui/settings/appearance_handler.cc
@@ -53,7 +53,10 @@ void AppearanceHandler::HandleUseDefaultTheme(const base::ListValue* args) {
#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
void AppearanceHandler::HandleUseSystemTheme(const base::ListValue* args) {
- ThemeServiceFactory::GetForProfile(profile_)->UseSystemTheme();
+ if (profile_->IsSupervised())
+ NOTREACHED();
+ else
+ ThemeServiceFactory::GetForProfile(profile_)->UseSystemTheme();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698