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 d10d36a7443f73bcfe45995867f3415874336f24..be2c4e2823ca8ff3eedf37d894f557a2f354c43c 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; |