Index: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm (revision 152078) |
+++ chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm (working copy) |
@@ -213,7 +213,9 @@ |
if (!extension) |
break; |
BrowserActionButton* button = [owner_ buttonForExtension:extension]; |
- [owner_ browserActionClicked:button]; |
+ // |button| can be NULL when the browser action has its button hidden. |
Scott Hess - ex-Googler
2012/08/17 17:13:17
s/NULL/nil/ for Objective-C objects. Unless Brows
|
+ if (button) |
+ [owner_ browserActionClicked:button]; |
Scott Hess - ex-Googler
2012/08/17 17:13:17
This combination almost makes me wish you could wr
Finnur
2012/08/20 11:41:45
Yeah, it is a bit silly because the function actua
Finnur
2012/08/20 14:03:34
Actually, I take that back (and reverted this chan
Scott Hess - ex-Googler
2012/08/20 22:59:34
Makes sense (I think).
On 2012/08/20 14:03:34, Fi
|
break; |
} |
default: |