Index: Source/modules/serviceworkers/ServiceWorker.cpp |
diff --git a/Source/modules/serviceworkers/ServiceWorker.cpp b/Source/modules/serviceworkers/ServiceWorker.cpp |
index 385edee6aa7bbf77810e94eafaba870053e9ba77..8cfa8697711a417cf7f836255a5abe29fcc64ab2 100644 |
--- a/Source/modules/serviceworkers/ServiceWorker.cpp |
+++ b/Source/modules/serviceworkers/ServiceWorker.cpp |
@@ -241,8 +241,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; |
@@ -255,7 +254,6 @@ PassRefPtrWillBeRawPtr<ServiceWorker> ServiceWorker::getOrCreate(ExecutionContex |
ServiceWorker::ServiceWorker(ExecutionContext* executionContext, PassOwnPtr<WebServiceWorker> worker) |
: AbstractWorker(executionContext) |
- , WebServiceWorkerProxy(this) |
, m_outerWorker(worker) |
, m_proxyState(Initial) |
{ |