Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: trunk/src/chrome/browser/ui/cocoa/extensions/browser_action_button.mm

Issue 224013005: Revert 259625 "Disabled context menu for external component exte..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/ui/cocoa/extensions/browser_action_button.mm
===================================================================
--- trunk/src/chrome/browser/ui/cocoa/extensions/browser_action_button.mm (revision 261492)
+++ trunk/src/chrome/browser/ui/cocoa/extensions/browser_action_button.mm (working copy)
@@ -149,16 +149,14 @@
[self setButtonType:NSMomentaryChangeButton];
[self setShowsBorderOnlyWhileMouseInside:YES];
- if (extension->ShowConfigureContextMenus()) {
- contextMenuController_.reset([[ExtensionActionContextMenuController alloc]
- initWithExtension:extension
- browser:browser
- extensionAction:browser_action]);
- base::scoped_nsobject<NSMenu> contextMenu(
- [[NSMenu alloc] initWithTitle:@""]);
- [contextMenu setDelegate:self];
- [self setMenu:contextMenu];
- }
+ contextMenuController_.reset([[ExtensionActionContextMenuController alloc]
+ initWithExtension:extension
+ browser:browser
+ extensionAction:browser_action]);
+ base::scoped_nsobject<NSMenu> contextMenu(
+ [[NSMenu alloc] initWithTitle:@""]);
+ [contextMenu setDelegate:self];
+ [self setMenu:contextMenu];
tabId_ = tabId;
extension_ = extension;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698