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

Unified Diff: chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc

Issue 2706243004: Linux UI: Never use GTK theme for supervised profiles (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
diff --git a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
index 0aac8ac5030ddca08642e337e93811e043397f78..577fed7064a7203e4ae07fdbac473c225d6b783c 100644
--- a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
+++ b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux.cc
@@ -39,8 +39,10 @@ ui::NativeTheme* GetNativeThemeForWindow(aura::Window* window) {
// If using the system (GTK) theme, don't use an Aura NativeTheme at all.
// NB: ThemeService::UsingSystemTheme() might lag behind this pref. See
// http://crbug.com/585522
- if (!profile || profile->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme))
+ if (!profile || (!profile->IsSupervised() &&
+ profile->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme))) {
return nullptr;
+ }
// Use a dark theme for incognito browser windows that aren't
// custom-themed. Otherwise, normal Aura theme.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698