Index: chrome/browser/chromeos/login/language_switch_menu.cc |
diff --git a/chrome/browser/chromeos/login/language_switch_menu.cc b/chrome/browser/chromeos/login/language_switch_menu.cc |
index dc94c8403f2e86eb9ab63f50bb6ba2196a737c2f..5f5d8c6cbbb3267184fd88022a3c6fe9921b1f1d 100644 |
--- a/chrome/browser/chromeos/login/language_switch_menu.cc |
+++ b/chrome/browser/chromeos/login/language_switch_menu.cc |
@@ -70,18 +70,9 @@ std::wstring LanguageSwitchMenu::GetCurrentLocaleName() const { |
language_list_->GetIndexFromLocale(locale)); |
}; |
-// Currently, views::Menu is implemented directly with the Gtk |
-// widgets. So we use native gtk callbacks to get its future size. |
-int LanguageSwitchMenu::GetFirstLevelMenuWidth() const { |
- DCHECK(menu_ != NULL); |
- GtkRequisition box_size; |
- gtk_widget_size_request(menu_->GetNativeMenu(), &box_size); |
- return box_size.width; |
-} |
- |
void LanguageSwitchMenu::SetFirstLevelMenuWidth(int width) { |
DCHECK(menu_ != NULL); |
- gtk_widget_set_size_request(menu_->GetNativeMenu(), width, -1); |
+ menu_->SetMinimumWidth(width); |
} |
// static |