| Index: Source/modules/background_sync/SyncRegistration.cpp
|
| diff --git a/Source/modules/background_sync/SyncRegistration.cpp b/Source/modules/background_sync/SyncRegistration.cpp
|
| index 64850cfa2435ec05ad3eccf30a4f1aa092d3a56a..21c3758cc624ec29cc5526875b038a3a2b71cc4a 100644
|
| --- a/Source/modules/background_sync/SyncRegistration.cpp
|
| +++ b/Source/modules/background_sync/SyncRegistration.cpp
|
| @@ -27,16 +27,9 @@ SyncRegistration* SyncRegistration::create(const WebSyncRegistration& syncRegist
|
| return new SyncRegistration(syncRegistration.id, options, serviceWorkerRegistration);
|
| }
|
|
|
| -SyncRegistration* SyncRegistration::take(ScriptPromiseResolver*, WebSyncRegistration* syncRegistration, ServiceWorkerRegistration* serviceWorkerRegistration)
|
| +SyncRegistration* SyncRegistration::take(ScriptPromiseResolver*, PassOwnPtr<WebSyncRegistration> registration, ServiceWorkerRegistration* serviceWorkerRegistration)
|
| {
|
| - OwnPtr<WebSyncRegistration> registration = adoptPtr(syncRegistration);
|
| - return create(*syncRegistration, serviceWorkerRegistration);
|
| -}
|
| -
|
| -void SyncRegistration::dispose(WebSyncRegistration* syncRegistration)
|
| -{
|
| - if (syncRegistration)
|
| - delete syncRegistration;
|
| + return create(*registration, serviceWorkerRegistration);
|
| }
|
|
|
| SyncRegistration::SyncRegistration(int64_t id, const SyncRegistrationOptions& options, ServiceWorkerRegistration* serviceWorkerRegistration)
|
|
|