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 b3357a6ceb216506db1525ac67c10aba3b35f6dd..77ba2ad512c9597ac01883ceda58c6cfefcb66c4 100644 |
| --- a/chrome/browser/notifications/notification_platform_bridge_mac.mm |
| +++ b/chrome/browser/notifications/notification_platform_bridge_mac.mm |
| @@ -39,6 +39,7 @@ |
| #include "third_party/WebKit/public/platform/modules/notifications/WebNotificationConstants.h" |
| #include "third_party/crashpad/crashpad/client/crashpad_client.h" |
| #include "ui/base/l10n/l10n_util_mac.h" |
| +#include "ui/message_center/notification_types.h" |
| #include "url/gurl.h" |
| #include "url/origin.h" |
| @@ -254,7 +255,8 @@ void NotificationPlatformBridgeMac::Display( |
| // can be displayed as alerts. Chrome itself can only display |
| // banners. |
| // Progress Notifications are always considered persistent. |
| - if (notification.never_timeout() || notification.progress() > 0) { |
| + if (notification.never_timeout() || |
| + notification.type() == message_center::NOTIFICATION_TYPE_PROGRESS) { |
|
Peter Beverloo
2017/04/18 13:40:09
Presumably we should use this for prefixing the ti
Miguel Garcia
2017/04/18 13:50:25
Done.
|
| NSDictionary* dict = [builder buildDictionary]; |
| [alert_dispatcher_ dispatchNotification:dict]; |
| } else { |