Index: chrome/browser/gtk/browser_actions_toolbar_gtk.cc |
diff --git a/chrome/browser/gtk/browser_actions_toolbar_gtk.cc b/chrome/browser/gtk/browser_actions_toolbar_gtk.cc |
index 621a42f388d12be4c3f2741f9b31f96c4105cba9..5ab13c6797300c9dcd1444baa5f4a131e1c37fca 100644 |
--- a/chrome/browser/gtk/browser_actions_toolbar_gtk.cc |
+++ b/chrome/browser/gtk/browser_actions_toolbar_gtk.cc |
@@ -188,9 +188,12 @@ class BrowserActionButton : public NotificationObserver, |
if (event->button.button != 3) |
return FALSE; |
+ // TODO(rafaelw): support inspecting popups. |
if (!action->context_menu_model_.get()) { |
action->context_menu_model_.reset( |
- new ExtensionActionContextMenuModel(action->extension_)); |
+ new ExtensionActionContextMenuModel(action->extension_, |
+ action->extension_->browser_action(), |
+ action->toolbar_->browser()->profile()->GetPrefs(), NULL)); |
} |
action->context_menu_.reset( |