Index: views/widget/widget_win.cc |
=================================================================== |
--- views/widget/widget_win.cc (revision 85647) |
+++ views/widget/widget_win.cc (working copy) |
@@ -564,7 +564,8 @@ |
// Windows special DWM window frame requires a special tooltip manager so |
// that window controls in Chrome windows don't flicker when you move your |
// mouse over them. See comment in aero_tooltip_manager.h. |
- if (GetWidget()->GetThemeProvider()->ShouldUseNativeFrame()) { |
+ Window* window = GetWidget()->GetContainingWindow(); |
+ if (window && window->ShouldUseNativeFrame()) { |
tooltip_manager_.reset(new AeroTooltipManager(GetWidget())); |
} else { |
tooltip_manager_.reset(new TooltipManagerWin(GetWidget())); |
@@ -1106,7 +1107,8 @@ |
void WidgetWin::ClientAreaSizeChanged() { |
RECT r; |
- if (GetWidget()->GetThemeProvider()->ShouldUseNativeFrame() || IsZoomed()) |
+ Window* window = GetWidget()->GetContainingWindow(); |
+ if (IsZoomed() || (window && window->ShouldUseNativeFrame())) |
GetClientRect(&r); |
else |
GetWindowRect(&r); |