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 74a5239507784daf04866d56062bd21805f3254e..ed617db1f3a6b4780e485dd67c36fe91e7800576 100644 |
--- a/third_party/WebKit/Source/modules/notifications/Notification.cpp |
+++ b/third_party/WebKit/Source/modules/notifications/Notification.cpp |
@@ -105,11 +105,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 : NotificationStateClosed); |
notification->suspendIfNeeded(); |
return notification; |