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

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

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! Created 5 years, 4 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: Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
diff --git a/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp b/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
index 6cccd2d7df6d4b8e4a06181159eee21e9d58db6b..73f95a2e3a031055a257b02fd59780b915a3058b 100644
--- a/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
+++ b/Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp
@@ -23,6 +23,7 @@
#include "public/platform/WebSecurityOrigin.h"
#include "public/platform/modules/notifications/WebNotificationData.h"
#include "public/platform/modules/notifications/WebNotificationManager.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -32,9 +33,9 @@ namespace {
// getNotifications() promise with a HeapVector owning Notifications.
class NotificationArray {
public:
- using WebType = WebVector<WebPersistentNotificationInfo>;
+ using WebType = OwnPtr<WebVector<WebPersistentNotificationInfo>>;
- static HeapVector<Member<Notification>> take(ScriptPromiseResolver* resolver, PassOwnPtr<WebType> notificationInfos)
+ static HeapVector<Member<Notification>> take(ScriptPromiseResolver* resolver, PassOwnPtr<WebVector<WebPersistentNotificationInfo>> notificationInfos)
{
HeapVector<Member<Notification>> notifications;
for (const WebPersistentNotificationInfo& notificationInfo : *notificationInfos)
« no previous file with comments | « Source/modules/geofencing/GeofencingError.cpp ('k') | Source/modules/presentation/PresentationAvailability.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698