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

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: fix test flakyness Created 4 years, 7 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 62db45fb8d2f77b3688304e513c328a1e2bb8785..bb9b5394a49f087261e92feae664c19f476e8526 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -411,10 +411,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