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