@@ -727,16 +727,6 @@ class WrenchMenu::RecentTabsMenuModelDelegate : public ui::MenuModelDelegate {
727
727
model_->SetMenuModelDelegate (NULL );
728
728
}
729
729
730
- // Return the specific menu width of recent tabs submenu if |menu| is the
731
- // recent tabs submenu, else return -1.
732
- int GetMaxWidthForMenu (views::MenuItemView* menu) {
733
- if (!menu_item_->HasSubmenu ())
734
- return -1 ;
735
- const int kMaxMenuItemWidth = 320 ;
736
- return menu->GetCommand () == menu_item_->GetCommand () ?
737
- kMaxMenuItemWidth : -1 ;
738
- }
739
-
740
730
const gfx::FontList* GetLabelFontListAt (int index) const {
741
731
return model_->GetLabelFontListAt (index);
742
732
}
@@ -984,15 +974,7 @@ int WrenchMenu::GetDragOperations(MenuItemView* sender) {
984
974
int WrenchMenu::GetMaxWidthForMenu (MenuItemView* menu) {
985
975
if (IsBookmarkCommand (menu->GetCommand ()))
986
976
return bookmark_menu_delegate_->GetMaxWidthForMenu (menu);
987
- int max_width = -1 ;
988
- // If recent tabs menu is available, it will decide if |menu| is one of recent
989
- // tabs; if yes, it would return the menu width for recent tabs.
990
- // otherwise, it would return -1.
991
- if (recent_tabs_menu_model_delegate_.get ())
992
- max_width = recent_tabs_menu_model_delegate_->GetMaxWidthForMenu (menu);
993
- if (max_width == -1 )
994
- max_width = MenuDelegate::GetMaxWidthForMenu (menu);
995
- return max_width;
977
+ return MenuDelegate::GetMaxWidthForMenu (menu);
996
978
}
997
979
998
980
bool WrenchMenu::IsItemChecked (int command_id) const {
0 commit comments