| Index: chrome/browser/notifications/notification_platform_bridge_mac.mm
|
| diff --git a/chrome/browser/notifications/notification_platform_bridge_mac.mm b/chrome/browser/notifications/notification_platform_bridge_mac.mm
|
| index 410eed0da881bbe0e4b2925b44f37e04aa52907c..b3357a6ceb216506db1525ac67c10aba3b35f6dd 100644
|
| --- a/chrome/browser/notifications/notification_platform_bridge_mac.mm
|
| +++ b/chrome/browser/notifications/notification_platform_bridge_mac.mm
|
| @@ -183,7 +183,13 @@ void NotificationPlatformBridgeMac::Display(
|
| [builder
|
| setTitle:base::SysUTF16ToNSString(CreateNotificationTitle(notification))];
|
|
|
| - [builder setContextMessage:base::SysUTF16ToNSString(notification.message())];
|
| + base::string16 context_message =
|
| + notification.items().empty()
|
| + ? notification.message()
|
| + : (notification.items().at(0).title + base::UTF8ToUTF16(" - ") +
|
| + notification.items().at(0).message);
|
| +
|
| + [builder setContextMessage:base::SysUTF16ToNSString(context_message)];
|
|
|
| bool requires_attribution =
|
| notification.context_message().empty() &&
|
|
|