Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp

Issue 1619703002: Implement notificationclose event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
diff --git a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
index 4f682f416690ae527e5f52a253e6f229d41fda50..97a8a2eb617672c70453225cb0310951efd90566 100644
--- a/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
+++ b/third_party/WebKit/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
@@ -31,7 +31,7 @@ public:
{
HeapVector<Member<Notification>> notifications;
for (const WebPersistentNotificationInfo& notificationInfo : notificationInfos)
- notifications.append(Notification::create(resolver->executionContext(), notificationInfo.persistentId, notificationInfo.data));
+ notifications.append(Notification::create(resolver->executionContext(), notificationInfo.persistentId, notificationInfo.data, true));
Peter Beverloo 2016/01/26 16:13:45 , true /* showing */)
Nina 2016/01/27 18:48:58 Added here and in two more analogous places.
return notifications;
}

Powered by Google App Engine
This is Rietveld 408576698