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

Unified Diff: ui/views/view.cc

Issue 2254933002: Reuse NativeThemeAuraDark for cros tray. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« ash/common/system/tray/tray_background_view.cc ('K') | « ui/views/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index e6d51dd2cc56b693ab36adcce0041bb033c29352..011d154178b4b0c92dadcf721d52b2ff134595b5 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -874,6 +874,9 @@ const ui::ThemeProvider* View::GetThemeProvider() const {
}
const ui::NativeTheme* View::GetNativeTheme() const {
+ if (parent())
+ return parent()->GetNativeTheme();
+
const Widget* widget = GetWidget();
if (widget)
return widget->GetNativeTheme();
« ash/common/system/tray/tray_background_view.cc ('K') | « ui/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698