Index: chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc |
diff --git a/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc b/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc |
index 710e5e08ba1c6836caf59d4b96f5822a22021152..1627cbafcf6160010ee4559fc6bfcff7e12f0885 100644 |
--- a/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc |
+++ b/chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc |
@@ -220,7 +220,7 @@ class ProfileItemView : public views::CustomButton, |
AvatarMenuBubbleView* parent, |
AvatarMenu* menu); |
- virtual gfx::Size GetPreferredSize() OVERRIDE; |
+ virtual gfx::Size GetPreferredSize() const OVERRIDE; |
virtual void Layout() OVERRIDE; |
virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; |
virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
@@ -297,7 +297,7 @@ ProfileItemView::ProfileItemView(const AvatarMenu::Item& item, |
OnHighlightStateChanged(); |
} |
-gfx::Size ProfileItemView::GetPreferredSize() { |
+gfx::Size ProfileItemView::GetPreferredSize() const { |
int text_width = std::max(name_label_->GetPreferredSize().width(), |
sync_state_label_->GetPreferredSize().width()); |
text_width = std::max(edit_link_->GetPreferredSize().width(), text_width); |
@@ -535,7 +535,7 @@ AvatarMenuBubbleView::AvatarMenuBubbleView( |
AvatarMenuBubbleView::~AvatarMenuBubbleView() { |
} |
-gfx::Size AvatarMenuBubbleView::GetPreferredSize() { |
+gfx::Size AvatarMenuBubbleView::GetPreferredSize() const { |
const int kBubbleViewMinWidth = 175; |
gfx::Size preferred_size(kBubbleViewMinWidth, 0); |
for (size_t i = 0; i < item_views_.size(); ++i) { |