summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/browser_actions_toolbar_gtk.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-06 21:04:55 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-06 21:04:55 +0000
commita8e91124532061d21f0114605530c605582144e8 (patch)
tree4ee30fb79cdb064517c5ad0a1c11a75328a7db04 /chrome/browser/gtk/browser_actions_toolbar_gtk.cc
parent4e59e814cc1264300b597c3d62a8ccb4da264889 (diff)
downloadchromium_src-a8e91124532061d21f0114605530c605582144e8.zip
chromium_src-a8e91124532061d21f0114605530c605582144e8.tar.gz
chromium_src-a8e91124532061d21f0114605530c605582144e8.tar.bz2
GTK: Change menu delegate callback from CommandWasExecuted to CommandWillBeExecuted.
Both the menu itself and the delegate were being destroyed in ExecuteCommand, double whammy! BUG=40477 TEST=disable browser action extension via context menu Review URL: http://codereview.chromium.org/1593012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43757 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_actions_toolbar_gtk.cc')
-rw-r--r--chrome/browser/gtk/browser_actions_toolbar_gtk.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/gtk/browser_actions_toolbar_gtk.cc b/chrome/browser/gtk/browser_actions_toolbar_gtk.cc
index 1d25c2a..9087793 100644
--- a/chrome/browser/gtk/browser_actions_toolbar_gtk.cc
+++ b/chrome/browser/gtk/browser_actions_toolbar_gtk.cc
@@ -200,7 +200,7 @@ class BrowserActionButton : public NotificationObserver,
gtk_util::GrabAllInput(toolbar_->overflow_menu_->widget());
}
- virtual void CommandWasExecuted() {
+ virtual void CommandWillBeExecuted() {
// If the context menu was showing for the overflow menu, and a command
// is executed, then stop showing the overflow menu.
if (toolbar_->overflow_menu_.get())