Index: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
index 777b34fe58e6fe03df14cb5cf1d03f70e676c408..ade6bfe80569dacf8486ee94c9e9cd0af9884f93 100644 |
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
@@ -83,7 +83,6 @@ void InProcessWorkerMessagingProxy::startWorkerGlobalScope( |
const KURL& scriptURL, |
const String& userAgent, |
const String& sourceCode, |
- ContentSecurityPolicy* contentSecurityPolicy, |
const String& referrerPolicy) { |
DCHECK(isParentContextThread()); |
if (askedToTerminate()) { |
@@ -95,9 +94,7 @@ void InProcessWorkerMessagingProxy::startWorkerGlobalScope( |
Document* document = toDocument(getExecutionContext()); |
SecurityOrigin* starterOrigin = document->getSecurityOrigin(); |
- ContentSecurityPolicy* csp = contentSecurityPolicy |
- ? contentSecurityPolicy |
- : document->contentSecurityPolicy(); |
+ ContentSecurityPolicy* csp = document->contentSecurityPolicy(); |
DCHECK(csp); |
WorkerThreadStartMode startMode = |