summaryrefslogtreecommitdiffstats
path: root/views/widget/widget_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/widget_win.cc')
-rw-r--r--views/widget/widget_win.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/views/widget/widget_win.cc b/views/widget/widget_win.cc
index c4aa1740..79ec700 100644
--- a/views/widget/widget_win.cc
+++ b/views/widget/widget_win.cc
@@ -396,13 +396,7 @@ TooltipManager* WidgetWin::GetTooltipManager() {
ThemeProvider* WidgetWin::GetThemeProvider() const {
Widget* widget = GetRootWidget();
if (widget) {
- // 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();
+ ThemeProvider* provider = widget->GetDialogThemeProvider();
if (provider)
return provider;
}