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 87491400d8a828b6c0ab568597bee3bceb08d1ce..40e9b354eb24c2cf7205e516cac2c19d8e916002 100644 |
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
@@ -346,10 +346,6 @@ void WebEmbeddedWorkerImpl::startWorkerThread() |
Document* document = m_mainFrame->frame()->document(); |
- WorkerThreadStartMode startMode = DontPauseWorkerGlobalScopeOnStart; |
- if (InspectorInstrumentation::shouldPauseDedicatedWorkerOnStart(document)) |
- startMode = PauseWorkerGlobalScopeOnStart; |
- |
// FIXME: this document's origin is pristine and without any extra privileges. (crbug.com/254993) |
SecurityOrigin* starterOrigin = document->securityOrigin(); |
@@ -362,6 +358,7 @@ void WebEmbeddedWorkerImpl::startWorkerThread() |
document->initContentSecurityPolicy(m_mainScriptLoader->releaseContentSecurityPolicy()); |
KURL scriptURL = m_mainScriptLoader->url(); |
+ WorkerThreadStartMode startMode = m_workerInspectorProxy->workerStartMode(document); |
OwnPtr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create( |
scriptURL, |
m_workerStartData.userAgent, |