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

Unified Diff: views/widget/widget_win.cc

Issue 115729: Really theme the find bar. We were previously getting the DefaultThemeProvide... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget_win.cc
===================================================================
--- views/widget/widget_win.cc (revision 17048)
+++ views/widget/widget_win.cc (working copy)
@@ -396,9 +396,15 @@
ThemeProvider* WidgetWin::GetThemeProvider() const {
Widget* widget = GetRootWidget();
if (widget) {
- ThemeProvider* provider = widget->GetDialogThemeProvider();
+ // Attempt to get the theme provider, and fall back to the default theme
+ // provider if not found.
+ ThemeProvider* provider = widget->GetThemeProvider();
if (provider)
return provider;
+
+ provider = widget->GetDefaultThemeProvider();
+ if (provider)
+ return provider;
}
return default_theme_provider_.get();
}
« no previous file with comments | « views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698