Index: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
index 2d98cff11ce818df321bacaef351167e8ceaa647..74fe85cebeb2c9d0a41c1bd41896affde705033c 100644 |
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
@@ -348,10 +348,10 @@ void WebEmbeddedWorkerImpl::startWorkerThread() |
// FIXME: this document's origin is pristine and without any extra privileges. (crbug.com/254993) |
SecurityOrigin* starterOrigin = document->getSecurityOrigin(); |
- RawPtr<WorkerClients> workerClients = WorkerClients::create(); |
- provideContentSettingsClientToWorker(workerClients.get(), m_contentSettingsClient.release()); |
- provideServiceWorkerGlobalScopeClientToWorker(workerClients.get(), ServiceWorkerGlobalScopeClientImpl::create(*m_workerContextClient)); |
- provideServiceWorkerContainerClientToWorker(workerClients.get(), adoptPtr(m_workerContextClient->createServiceWorkerProvider())); |
+ WorkerClients* workerClients = WorkerClients::create(); |
+ provideContentSettingsClientToWorker(workerClients, m_contentSettingsClient.release()); |
+ provideServiceWorkerGlobalScopeClientToWorker(workerClients, ServiceWorkerGlobalScopeClientImpl::create(*m_workerContextClient)); |
+ provideServiceWorkerContainerClientToWorker(workerClients, adoptPtr(m_workerContextClient->createServiceWorkerProvider())); |
// We need to set the CSP to both the shadow page's document and the ServiceWorkerGlobalScope. |
document->initContentSecurityPolicy(m_mainScriptLoader->releaseContentSecurityPolicy()); |
@@ -366,7 +366,7 @@ void WebEmbeddedWorkerImpl::startWorkerThread() |
startMode, |
document->contentSecurityPolicy()->headers(), |
starterOrigin, |
- workerClients.release(), |
+ workerClients, |
m_mainScriptLoader->responseAddressSpace(), |
static_cast<V8CacheOptions>(m_workerStartData.v8CacheOptions)); |