diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/background_sync/service_worker_registration_sync.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/background_sync/service_worker_registration_sync.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/modules/background_sync/service_worker_registration_sync.cc b/chromium/third_party/blink/renderer/modules/background_sync/service_worker_registration_sync.cc index 2490ca3e5ab..33197156d73 100644 --- a/chromium/third_party/blink/renderer/modules/background_sync/service_worker_registration_sync.cc +++ b/chromium/third_party/blink/renderer/modules/background_sync/service_worker_registration_sync.cc @@ -7,6 +7,7 @@ #include "third_party/blink/renderer/modules/background_sync/periodic_sync_manager.h" #include "third_party/blink/renderer/modules/background_sync/sync_manager.h" #include "third_party/blink/renderer/modules/service_worker/service_worker_registration.h" +#include "third_party/blink/renderer/platform/heap/heap.h" namespace blink { @@ -41,7 +42,7 @@ SyncManager* ServiceWorkerRegistrationSync::sync() { if (!sync_manager_) { ExecutionContext* execution_context = registration_->GetExecutionContext(); // TODO(falken): Consider defining a task source in the spec for this event. - sync_manager_ = SyncManager::Create( + sync_manager_ = MakeGarbageCollected<SyncManager>( registration_, execution_context->GetTaskRunner(TaskType::kMiscPlatformAPI)); } @@ -57,14 +58,14 @@ PeriodicSyncManager* ServiceWorkerRegistrationSync::periodicSync() { if (!periodic_sync_manager_) { ExecutionContext* execution_context = registration_->GetExecutionContext(); // TODO(falken): Consider defining a task source in the spec for this event. - periodic_sync_manager_ = PeriodicSyncManager::Create( + periodic_sync_manager_ = MakeGarbageCollected<PeriodicSyncManager>( registration_, execution_context->GetTaskRunner(TaskType::kMiscPlatformAPI)); } return periodic_sync_manager_.Get(); } -void ServiceWorkerRegistrationSync::Trace(blink::Visitor* visitor) { +void ServiceWorkerRegistrationSync::Trace(Visitor* visitor) { visitor->Trace(registration_); visitor->Trace(sync_manager_); visitor->Trace(periodic_sync_manager_); |