Index: chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm |
diff --git a/chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm b/chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm |
index c773dc5404d75f2cd370dd6b28e8bc1302665550..fd582a93865e62652e0af8baa22b7dee079a431c 100644 |
--- a/chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm |
+++ b/chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm |
@@ -46,9 +46,11 @@ |
NSNumber* notificationType = [[notification userInfo] |
objectForKey:notification_constants::kNotificationType]; |
- // Initialize operation and button index for the case where the |
- // notification itself was clicked. |
- NotificationOperation operation = NOTIFICATION_CLICK; |
+ // Closed notifications are not activated. |
+ NotificationOperation operation = |
+ notification.activationType == NSUserNotificationActivationTypeNone |
+ ? NOTIFICATION_CLOSE |
+ : NOTIFICATION_CLICK; |
int buttonIndex = -1; |
// Determine whether the user clicked on a button, and if they did, whether it |