| Index: Source/modules/background_sync/SyncRegistration.cpp
|
| diff --git a/Source/modules/background_sync/SyncRegistration.cpp b/Source/modules/background_sync/SyncRegistration.cpp
|
| index fa71ba8060507250ba9527160730d63a08e5797d..54c814dce237464a4cc7e948bc62404e07f44173 100644
|
| --- a/Source/modules/background_sync/SyncRegistration.cpp
|
| +++ b/Source/modules/background_sync/SyncRegistration.cpp
|
| @@ -20,12 +20,17 @@
|
|
|
| namespace blink {
|
|
|
| +SyncRegistration* SyncRegistration::create(const WebSyncRegistration& syncRegistration, ServiceWorkerRegistration* serviceWorkerRegistration)
|
| +{
|
| + SyncRegistrationOptions options = SyncRegistrationOptions();
|
| + options.setTag(syncRegistration.tag);
|
| + return new SyncRegistration(syncRegistration.id, options, serviceWorkerRegistration);
|
| +}
|
| +
|
| SyncRegistration* SyncRegistration::take(ScriptPromiseResolver*, WebSyncRegistration* syncRegistration, ServiceWorkerRegistration* serviceWorkerRegistration)
|
| {
|
| OwnPtr<WebSyncRegistration> registration = adoptPtr(syncRegistration);
|
| - SyncRegistrationOptions options = SyncRegistrationOptions();
|
| - options.setTag(syncRegistration->tag);
|
| - return new SyncRegistration(syncRegistration->id, options, serviceWorkerRegistration);
|
| + return create(*syncRegistration, serviceWorkerRegistration);
|
| }
|
|
|
| void SyncRegistration::dispose(WebSyncRegistration* syncRegistration)
|
|
|