Index: ui/views/controls/menu/menu_separator_views.cc |
diff --git a/ui/views/controls/menu/menu_separator_views.cc b/ui/views/controls/menu/menu_separator_views.cc |
index affbae4896691304923b2b0213dafdb10f7a452c..34f85453501d62a86dc44d1cde338e647ba80d50 100644 |
--- a/ui/views/controls/menu/menu_separator_views.cc |
+++ b/ui/views/controls/menu/menu_separator_views.cc |
@@ -23,7 +23,7 @@ void MenuSeparator::OnPaint(gfx::Canvas* canvas) { |
OnPaintAura(canvas); |
} |
-gfx::Size MenuSeparator::GetPreferredSize() { |
+gfx::Size MenuSeparator::GetPreferredSize() const { |
return GetPreferredSizeAura(); |
} |
#endif |
@@ -47,7 +47,7 @@ void MenuSeparator::OnPaintAura(gfx::Canvas* canvas) { |
ui::NativeTheme::kColorId_MenuSeparatorColor)); |
} |
-gfx::Size MenuSeparator::GetPreferredSizeAura() { |
+gfx::Size MenuSeparator::GetPreferredSizeAura() const { |
const MenuConfig& menu_config = parent_menu_item_->GetMenuConfig(); |
int height = menu_config.separator_height; |
switch(type_) { |