Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1473)

Unified Diff: Source/modules/serviceworkers/ServiceWorker.cpp

Issue 682003003: Simplify WebServiceWorker{Registration}Proxy interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove incorrect FIXME Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/serviceworkers/ServiceWorkerRegistration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
{
« no previous file with comments | « no previous file | Source/modules/serviceworkers/ServiceWorkerRegistration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698