Chromium Code Reviews| 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 291d8bccebd17cb293f0e76dc5caa4cbb80395c3..267873aeeca38273d066568c5335623b5963b64d 100644 |
| --- a/chrome/browser/notifications/notification_platform_bridge_mac.mm |
| +++ b/chrome/browser/notifications/notification_platform_bridge_mac.mm |
| @@ -182,7 +182,14 @@ 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); |
|
Peter Beverloo
2017/04/13 14:27:29
You could improve RTL support by using a simple st
|
| + |
| + [builder setContextMessage:base::SysUTF16ToNSString(context_message)]; |
| bool requires_attribution = |
| notification.context_message().empty() && |