Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Unified Diff: chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm

Issue 2093953002: Introduce a new API to handle native notification clicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 1e78261b9fbf769cb44618815aa1f7753f5d9b47..c773dc5404d75f2cd370dd6b28e8bc1302665550 100644
--- a/chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm
+++ b/chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm
@@ -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],
};

Powered by Google App Engine
This is Rietveld 408576698