Index: Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
index d8a5a4c18abd76335a95858ff1a6c1395fc4a248..ef582fa32e685829332a0134e9e1d67bedeaa40e 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
@@ -67,7 +67,7 @@ namespace blink { |
class ServiceWorkerGlobalScope::SkipWaitingCallback final : public WebServiceWorkerSkipWaitingCallbacks { |
WTF_MAKE_NONCOPYABLE(SkipWaitingCallback); |
public: |
- explicit SkipWaitingCallback(PassRefPtrWillBeRawPtr<ScriptPromiseResolver> resolver) |
+ explicit SkipWaitingCallback(ScriptPromiseResolver* resolver) |
: m_resolver(resolver) { } |
~SkipWaitingCallback() { } |
@@ -77,7 +77,7 @@ public: |
} |
private: |
- RefPtrWillBePersistent<ScriptPromiseResolver> m_resolver; |
+ Persistent<ScriptPromiseResolver> m_resolver; |
}; |
PassRefPtrWillBeRawPtr<ServiceWorkerGlobalScope> ServiceWorkerGlobalScope::create(ServiceWorkerThread* thread, PassOwnPtr<WorkerThreadStartupData> startupData) |
@@ -147,7 +147,7 @@ ScriptPromise ServiceWorkerGlobalScope::skipWaiting(ScriptState* scriptState) |
if (!executionContext) |
return ScriptPromise(); |
- RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState); |
+ ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); |
ScriptPromise promise = resolver->promise(); |
ServiceWorkerGlobalScopeClient::from(executionContext)->skipWaiting(new SkipWaitingCallback(resolver)); |