| Index: Source/modules/push_messaging/PushRegistration.h
|
| diff --git a/Source/modules/push_messaging/PushRegistration.h b/Source/modules/push_messaging/PushRegistration.h
|
| index 97be1e8c3e324962e23e53c1ce1d957a7ba39cb8..91cb1bbfac70065ae78913461c085479585b96a7 100644
|
| --- a/Source/modules/push_messaging/PushRegistration.h
|
| +++ b/Source/modules/push_messaging/PushRegistration.h
|
| @@ -13,11 +13,13 @@
|
|
|
| namespace WebCore {
|
|
|
| +class NewScriptState;
|
| +
|
| class PushRegistration FINAL : public RefCountedWillBeGarbageCollectedFinalized<PushRegistration>, public ScriptWrappable {
|
| public:
|
| // For CallbackPromiseAdapter.
|
| typedef blink::WebPushRegistration WebType;
|
| - static PassRefPtrWillBeRawPtr<PushRegistration> from(WebType* registrationRaw)
|
| + static PassRefPtrWillBeRawPtr<PushRegistration> from(NewScriptState*, WebType* registrationRaw)
|
| {
|
| OwnPtr<WebType> registration = adoptPtr(registrationRaw);
|
| return adoptRefWillBeNoop(new PushRegistration(registration->endpoint, registration->registrationId));
|
|
|