| Index: Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
|
| diff --git a/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp b/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
|
| index 8627d6d8cf4ef10da41ca6d3f7c00917ddfba66e..a01a853b3a786d11bd772c993b33f8c926b74ddd 100644
|
| --- a/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
|
| +++ b/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
|
| @@ -33,12 +33,12 @@ namespace {
|
| // getNotifications() promise with a HeapVector owning Notifications.
|
| class NotificationArray {
|
| public:
|
| - using WebType = OwnPtr<WebVector<WebPersistentNotificationInfo>>;
|
| + using WebType = const WebVector<WebPersistentNotificationInfo>&;
|
|
|
| - static HeapVector<Member<Notification>> take(ScriptPromiseResolver* resolver, PassOwnPtr<WebVector<WebPersistentNotificationInfo>> notificationInfos)
|
| + static HeapVector<Member<Notification>> take(ScriptPromiseResolver* resolver, const WebVector<WebPersistentNotificationInfo>& notificationInfos)
|
| {
|
| HeapVector<Member<Notification>> notifications;
|
| - for (const WebPersistentNotificationInfo& notificationInfo : *notificationInfos)
|
| + for (const WebPersistentNotificationInfo& notificationInfo : notificationInfos)
|
| notifications.append(Notification::create(resolver->executionContext(), notificationInfo.persistentId, notificationInfo.data));
|
| return notifications;
|
| }
|
|
|