Index: chrome/browser/views/toolbar_view.cc |
=================================================================== |
--- chrome/browser/views/toolbar_view.cc (revision 14739) |
+++ chrome/browser/views/toolbar_view.cc (working copy) |
@@ -399,7 +399,7 @@ |
// For glass, we need to draw a black line below the location bar to separate |
// it from the content area. For non-glass, the NonClientView draws the |
// toolbar background below the location bar for us. |
- if (GetWidget()->AsWindow()->GetNonClientView()->UseNativeFrame()) |
+ if (GetWidget()->GetWindow()->GetNonClientView()->UseNativeFrame()) |
canvas->FillRectInt(SK_ColorBLACK, 0, height() - 1, width(), 1); |
} |
@@ -554,7 +554,7 @@ |
} |
int vertical_spacing = PopupTopSpacing() + |
- (GetWidget()->AsWindow()->GetNonClientView()->UseNativeFrame() ? |
+ (GetWidget()->GetWindow()->GetNonClientView()->UseNativeFrame() ? |
kPopupBottomSpacingGlass : kPopupBottomSpacingNonGlass); |
return gfx::Size(0, location_bar_->GetPreferredSize().height() + |
vertical_spacing); |
@@ -883,7 +883,7 @@ |
// static |
int BrowserToolbarView::PopupTopSpacing() { |
- return GetWidget()->AsWindow()->GetNonClientView()->UseNativeFrame() ? |
+ return GetWidget()->GetWindow()->GetNonClientView()->UseNativeFrame() ? |
0 : kPopupTopSpacingNonGlass; |
} |