Index: chrome/browser/ui/views/browser_actions_container.cc |
diff --git a/chrome/browser/ui/views/browser_actions_container.cc b/chrome/browser/ui/views/browser_actions_container.cc |
index a213e078fec3db1c2c14c6fcdf1e9ace670b1ce2..61024de1345ccce3e24ad6c6f57825146a1bf251 100644 |
--- a/chrome/browser/ui/views/browser_actions_container.cc |
+++ b/chrome/browser/ui/views/browser_actions_container.cc |
@@ -251,6 +251,11 @@ void BrowserActionButton::OnMouseExited(const views::MouseEvent& e) { |
void BrowserActionButton::ShowContextMenu(const gfx::Point& p, |
bool is_mouse_gesture) { |
+ // There is nothing in context menu that has sense to show for |
+ // component extensions so just ignore the request. |
+ if (extension()->location() == Extension::COMPONENT) |
+ return; |
+ |
showing_context_menu_ = true; |
SetButtonPushed(); |