| 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 cf4df014184f8df80027d21ff31fe51e698472df..6e1bda37b641fe3d0d482409625ece5b8c6675ed 100644
|
| --- a/chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm
|
| +++ b/chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm
|
| @@ -10,7 +10,7 @@
|
| namespace {
|
|
|
| // Make sure this Obj-C enum is kept in sync with the
|
| -// PlatformNotificationServiceImpl NotificationOperation enum.
|
| +// notification_operation_common::NotificationOperation enum.
|
| // The latter cannot be reused because the XPC service is not aware of
|
| // PlatformNotificationCenter.
|
| enum NotificationOperation {
|
| @@ -43,6 +43,8 @@ enum NotificationOperation {
|
| objectForKey:notification_constants::kNotificationIncognito]);
|
| NSNumber* incognito = [[notification userInfo]
|
| objectForKey:notification_constants::kNotificationIncognito];
|
| + NSNumber* notificationType = [[notification userInfo]
|
| + objectForKey:notification_constants::kNotificationType];
|
|
|
| // Initialize operation and button index for the case where the
|
| // notification itself was clicked.
|
| @@ -88,8 +90,9 @@ enum NotificationOperation {
|
| notification_constants::kNotificationId : notificationId,
|
| notification_constants::kNotificationProfileId : profileId,
|
| notification_constants::kNotificationIncognito : incognito,
|
| - notification_constants::kNotificationOperation :
|
| - [NSNumber numberWithInt:operation],
|
| + notification_constants::kNotificationType : notificationType,
|
| + notification_constants::
|
| + kNotificationOperation : [NSNumber numberWithInt:operation],
|
| notification_constants::
|
| kNotificationButtonIndex : [NSNumber numberWithInt:buttonIndex],
|
| };
|
|
|