| Index: third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| diff --git a/third_party/WebKit/Source/modules/notifications/Notification.cpp b/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| index 00801a281c23bbe7999da1cdf14e399a025ebd59..1ef281c97cd6caff31e6ba0e4542ea4b04456ece 100644
|
| --- a/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| +++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp
|
| @@ -101,11 +101,11 @@ Notification* Notification::create(ExecutionContext* context, const String& titl
|
| return notification;
|
| }
|
|
|
| -Notification* Notification::create(ExecutionContext* context, int64_t persistentId, const WebNotificationData& data)
|
| +Notification* Notification::create(ExecutionContext* context, int64_t persistentId, const WebNotificationData& data, bool showing)
|
| {
|
| Notification* notification = new Notification(context, data);
|
| notification->setPersistentId(persistentId);
|
| - notification->setState(NotificationStateShowing);
|
| + notification->setState(showing ? NotificationStateShowing : NotificationStateClosing);
|
| notification->suspendIfNeeded();
|
|
|
| return notification;
|
|
|