| Index: chrome/browser/gtk/browser_toolbar_gtk.cc
|
| diff --git a/chrome/browser/gtk/browser_toolbar_gtk.cc b/chrome/browser/gtk/browser_toolbar_gtk.cc
|
| index a28abed6727a227bb7e50bb502e2d1c916b45809..2d8562af4c9b63693d5024fb94d4aff2f7e6c439 100644
|
| --- a/chrome/browser/gtk/browser_toolbar_gtk.cc
|
| +++ b/chrome/browser/gtk/browser_toolbar_gtk.cc
|
| @@ -227,7 +227,7 @@ void BrowserToolbarGtk::Init(Profile* profile,
|
| gtk_container_add(GTK_CONTAINER(wrench_box), wrench_button);
|
| gtk_box_pack_start(GTK_BOX(toolbar_), wrench_box, FALSE, FALSE, 4);
|
|
|
| - wrench_menu_.reset(new MenuGtk(this, &wrench_menu_model_));
|
| + wrench_menu_.reset(new MenuGtk(this, wrench_menu_model_.menu_model()));
|
| g_signal_connect(wrench_menu_->widget(), "show",
|
| G_CALLBACK(OnWrenchMenuShowThunk), this);
|
|
|
| @@ -333,33 +333,7 @@ GtkIconSet* BrowserToolbarGtk::GetIconSetForId(int idr) {
|
| return theme_provider_->GetIconSetForId(idr);
|
| }
|
|
|
| -// menus::SimpleMenuModel::Delegate
|
| -
|
| -bool BrowserToolbarGtk::IsCommandIdEnabled(int id) const {
|
| - return browser_->command_updater()->IsCommandEnabled(id);
|
| -}
|
| -
|
| -bool BrowserToolbarGtk::IsCommandIdChecked(int id) const {
|
| - if (!profile_)
|
| - return false;
|
| -
|
| - EncodingMenuController controller;
|
| - if (id == IDC_SHOW_BOOKMARK_BAR) {
|
| - return profile_->GetPrefs()->GetBoolean(prefs::kShowBookmarkBar);
|
| - } else if (controller.DoesCommandBelongToEncodingMenu(id)) {
|
| - TabContents* tab_contents = browser_->GetSelectedTabContents();
|
| - if (tab_contents) {
|
| - return controller.IsItemChecked(profile_, tab_contents->encoding(),
|
| - id);
|
| - }
|
| - }
|
| -
|
| - return false;
|
| -}
|
| -
|
| -void BrowserToolbarGtk::ExecuteCommand(int id) {
|
| - browser_->ExecuteCommand(id);
|
| -}
|
| +// menus::AcceleratorProvider
|
|
|
| bool BrowserToolbarGtk::GetAcceleratorForCommandId(
|
| int id,
|
|
|