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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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
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));
« no previous file with comments | « third_party/WebKit/Source/web/WebElementTest.cpp ('k') | third_party/WebKit/Source/web/WebFormControlElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698