Chromium Code Reviews| 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(); |