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

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

Issue 1828063002: Add support for origin trials in workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trial-token-in-header-blink-document
Patch Set: address comments 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/WebSharedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
index 8d0d19c24a6b5f6934da01047a5fadc2478a7bac..aa75a5bcdf07a75336cee63d21e0fde2adf050d7 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
@@ -337,10 +337,11 @@ void WebSharedWorkerImpl::onScriptLoaderFinished()
m_mainScriptLoader->script(),
nullptr,
startMode,
- contentSecurityPolicy ? contentSecurityPolicy->headers() : nullptr,
+ contentSecurityPolicy ? contentSecurityPolicy->headers().get() : nullptr,
starterOrigin,
workerClients,
- m_mainScriptLoader->responseAddressSpace());
+ m_mainScriptLoader->responseAddressSpace(),
+ m_mainScriptLoader->originTrialTokens());
m_loaderProxy = WorkerLoaderProxy::create(this);
m_workerThread = SharedWorkerThread::create(m_name, m_loaderProxy, *this);
InspectorInstrumentation::scriptImported(m_loadingDocument.get(), m_mainScriptLoader->identifier(), m_mainScriptLoader->script());

Powered by Google App Engine
This is Rietveld 408576698