Index: Source/modules/serviceworkers/ServiceWorker.cpp |
diff --git a/Source/modules/serviceworkers/ServiceWorker.cpp b/Source/modules/serviceworkers/ServiceWorker.cpp |
index 0127d1f677907577f0e276e5776177eb89a510cd..09b5bd6a8b52d3a4c9d581a16d74f51640a2ca85 100644 |
--- a/Source/modules/serviceworkers/ServiceWorker.cpp |
+++ b/Source/modules/serviceworkers/ServiceWorker.cpp |
@@ -238,8 +238,7 @@ PassRefPtrWillBeRawPtr<ServiceWorker> ServiceWorker::getOrCreate(ExecutionContex |
if (!outerWorker) |
return nullptr; |
- WebServiceWorkerProxy* proxy = outerWorker->proxy(); |
- ServiceWorker* existingServiceWorker = proxy ? proxy->unwrap() : 0; |
+ ServiceWorker* existingServiceWorker = static_cast<ServiceWorker*>(outerWorker->proxy()); |
if (existingServiceWorker) { |
ASSERT(existingServiceWorker->executionContext() == executionContext); |
return existingServiceWorker; |
@@ -252,7 +251,6 @@ PassRefPtrWillBeRawPtr<ServiceWorker> ServiceWorker::getOrCreate(ExecutionContex |
ServiceWorker::ServiceWorker(ExecutionContext* executionContext, PassOwnPtr<WebServiceWorker> worker) |
: AbstractWorker(executionContext) |
- , WebServiceWorkerProxy(this) |
, m_outerWorker(worker) |
, m_proxyState(Initial) |
{ |