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

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

Issue 2171563002: Add WorkerSettings to expose certain flag values in WorkerGlobalScope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 5 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 3bef971890c9843c3da973574048c931e8f53887..22c407438ef4e05f82f87dab5525d163671879d2 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -417,6 +417,7 @@ void WebEmbeddedWorkerImpl::startWorkerThread()
KURL scriptURL = m_mainScriptLoader->url();
WorkerThreadStartMode startMode = m_workerInspectorProxy->workerStartMode(document);
+ std::unique_ptr<WorkerSettings> workerSettings = wrapUnique(new WorkerSettings(document->settings()));
std::unique_ptr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create(
scriptURL,
@@ -430,6 +431,7 @@ void WebEmbeddedWorkerImpl::startWorkerThread()
workerClients,
m_mainScriptLoader->responseAddressSpace(),
m_mainScriptLoader->originTrialTokens(),
+ std::move(workerSettings),
static_cast<V8CacheOptions>(m_workerStartData.v8CacheOptions));
m_mainScriptLoader.clear();

Powered by Google App Engine
This is Rietveld 408576698