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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.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/WebEmbeddedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
index 75282894728d5271478170370fd6d9dd605d635b..958eaa2a0e56cdd993b3efc2cca2db9400f35524 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -392,10 +392,11 @@ void WebEmbeddedWorkerImpl::startWorkerThread()
m_mainScriptLoader->script(),
m_mainScriptLoader->releaseCachedMetadata(),
startMode,
- document->contentSecurityPolicy()->headers(),
+ document->contentSecurityPolicy()->headers().get(),
starterOrigin,
workerClients,
m_mainScriptLoader->responseAddressSpace(),
+ m_mainScriptLoader->originTrialTokens(),
static_cast<V8CacheOptions>(m_workerStartData.v8CacheOptions));
m_mainScriptLoader.clear();

Powered by Google App Engine
This is Rietveld 408576698