diff --git a/shell/browser/ui/tray_icon_cocoa.mm b/shell/browser/ui/tray_icon_cocoa.mm index c66ae6c486c3c..9ac52a4111b58 100644 --- a/shell/browser/ui/tray_icon_cocoa.mm +++ b/shell/browser/ui/tray_icon_cocoa.mm @@ -193,9 +193,9 @@ - (void)mouseDown:(NSEvent*)event { gfx::ScreenPointFromNSPoint([event locationInWindow]), ui::EventFlagsFromModifiers([event modifierFlags])); - // Pass click to superclass to show menu. Custom mouseUp handler won't be - // invoked. - if (menuController_) { + // Pass click to superclass to show menu if one exists and has a non-zero + // number of items. Custom mouseUp handler won't be invoked in this case. + if (menuController_ && [[menuController_ menu] numberOfItems] > 0) { [self handleClickNotifications:event]; [super mouseDown:event]; } else {