Chromium Code Reviews| Index: third_party/WebKit/Source/modules/background_sync/SyncManager.cpp |
| diff --git a/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp b/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp |
| index 16b5bd8664a86d55cac9f0873bfd390fe91dce00..c66f0c2857c6d52ee5a121e06a72ec775290305b 100644 |
| --- a/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp |
| +++ b/third_party/WebKit/Source/modules/background_sync/SyncManager.cpp |
| @@ -12,7 +12,6 @@ |
| #include "core/dom/ExceptionCode.h" |
| #include "core/dom/ExecutionContext.h" |
| #include "modules/background_sync/BackgroundSyncProvider.h" |
| -#include "modules/background_sync/SyncCallbacks.h" |
| #include "modules/serviceworkers/ServiceWorkerRegistration.h" |
| #include "public/platform/Platform.h" |
| #include "wtf/PtrUtil.h" |
| @@ -55,8 +54,7 @@ ScriptPromise SyncManager::registerFunction(ScriptState* scriptState, |
| blink::mojom::BackgroundSyncNetworkState::ONLINE; |
| backgroundSyncProvider()->registerBackgroundSync( |
| - std::move(syncRegistration), m_registration->webRegistration(), |
| - makeUnique<SyncRegistrationCallbacks>(resolver, m_registration)); |
| + std::move(syncRegistration), m_registration->webRegistration(), resolver); |
|
iclelland
2016/11/18 20:53:46
The old SyncRegistrationCallbacks object held a re
iclelland
2016/11/18 21:22:36
Tracing through the git history, and the evolution
|
| return promise; |
| } |
| @@ -65,9 +63,8 @@ ScriptPromise SyncManager::getTags(ScriptState* scriptState) { |
| ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); |
| ScriptPromise promise = resolver->promise(); |
| - backgroundSyncProvider()->getRegistrations( |
| - m_registration->webRegistration(), |
| - makeUnique<SyncGetRegistrationsCallbacks>(resolver, m_registration)); |
| + backgroundSyncProvider()->getRegistrations(m_registration->webRegistration(), |
| + resolver); |
| return promise; |
| } |