Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
index c68146b2931e5163674a44b87c5f3adb65cd7543..299a72b2a537b42f1558377ddc0e1603282e727d 100644 |
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
@@ -155,8 +155,8 @@ gfx::Size OpaqueBrowserFrameView::GetMinimumSize() const { |
return layout_->GetMinimumSize(width()); |
} |
-views::View* OpaqueBrowserFrameView::GetProfileSwitcherView() const { |
- return profile_switcher_.view(); |
+views::MenuButton* OpaqueBrowserFrameView::GetProfileSwitcherButton() const { |
+ return profile_switcher_.button(); |
} |
/////////////////////////////////////////////////////////////////////////////// |
@@ -177,10 +177,10 @@ bool OpaqueBrowserFrameView::IsWithinAvatarMenuButtons( |
profile_indicator_icon()->GetMirroredBounds().Contains(point)) { |
return true; |
} |
- if (profile_switcher_.view() && |
- profile_switcher_.view()->GetMirroredBounds().Contains(point)) { |
+ |
+ views::MenuButton* button = GetProfileSwitcherButton(); |
+ if (button && button->GetMirroredBounds().Contains(point)) |
return true; |
- } |
return false; |
} |