Chromium Code Reviews| Index: chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm |
| diff --git a/chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm b/chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm |
| index 1d64752e2086d3195da3525071d166b0d3c086da..cf178f615ac2be5a7c0a9bb9417b2397a0542d75 100644 |
| --- a/chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm |
| +++ b/chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm |
| @@ -114,6 +114,11 @@ NSString* const kNotificationSettingsButtonTag = @"settingsButton"; |
| forKey:notification_constants::kNotificationIncognito]; |
| } |
| +- (void)setNotificationType:(NSNumber*)notificationType { |
| + [notificationData_ setObject:notificationType |
| + forKey:notification_constants::kNotificationType]; |
| +} |
| + |
| - (NSUserNotification*)buildUserNotification { |
| base::scoped_nsobject<NSUserNotification> toast( |
| [[NSUserNotification alloc] init]); |
| @@ -205,12 +210,16 @@ NSString* const kNotificationSettingsButtonTag = @"settingsButton"; |
| objectForKey:notification_constants::kNotificationIncognito]); |
| NSNumber* incognito = [notificationData_ |
| objectForKey:notification_constants::kNotificationIncognito]; |
| + NSNumber* type = [notificationData_ |
| + objectForKey:notification_constants::kNotificationType]; |
| toast.get().userInfo = @{ |
| notification_constants::kNotificationOrigin : origin, |
| notification_constants::kNotificationId : notificationId, |
| notification_constants::kNotificationProfileId : profileId, |
| notification_constants::kNotificationIncognito : incognito, |
| + notification_constants::kNotificationType : type, |
| + |
|
Robert Sesek
2016/07/06 16:50:39
nit: extra blank line
Miguel Garcia
2016/07/07 11:02:29
Done.
|
| }; |
| return toast.autorelease(); |