Index: ui/views/controls/menu/menu_scroll_view_container.cc |
diff --git a/ui/views/controls/menu/menu_scroll_view_container.cc b/ui/views/controls/menu/menu_scroll_view_container.cc |
index 9201c4af7f4d7f46e19df53435b59d5d9d256bc0..451bd1537ad5b4cf5d66b8f552ede0800c1d8b5f 100644 |
--- a/ui/views/controls/menu/menu_scroll_view_container.cc |
+++ b/ui/views/controls/menu/menu_scroll_view_container.cc |
@@ -40,7 +40,7 @@ class MenuScrollButton : public View { |
pref_height_(MenuItemView::pref_menu_height()) { |
} |
- virtual gfx::Size GetPreferredSize() OVERRIDE { |
+ virtual gfx::Size GetPreferredSize() const OVERRIDE { |
return gfx::Size( |
host_->GetMenuItem()->GetMenuConfig().scroll_arrow_height * 2 - 1, |
pref_height_); |
@@ -243,7 +243,7 @@ void MenuScrollViewContainer::Layout() { |
scroll_view_->Layout(); |
} |
-gfx::Size MenuScrollViewContainer::GetPreferredSize() { |
+gfx::Size MenuScrollViewContainer::GetPreferredSize() const { |
gfx::Size prefsize = scroll_view_->GetContents()->GetPreferredSize(); |
gfx::Insets insets = GetInsets(); |
prefsize.Enlarge(insets.width(), insets.height()); |