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

Unified Diff: Source/core/workers/WorkerThreadStartupData.cpp

Issue 1190133002: Remove WorkerScriptLoaderClient and inheritances (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review #6 and #7 Created 5 years, 6 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
« no previous file with comments | « Source/core/workers/WorkerScriptLoaderClient.h ('k') | Source/web/SharedWorkerRepositoryClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerThreadStartupData.cpp
diff --git a/Source/core/workers/WorkerThreadStartupData.cpp b/Source/core/workers/WorkerThreadStartupData.cpp
index 740c67bd5e1b384057300c25d8b40e07bf7ad5f4..e50decab131d7bbc458217c033405e023c206049 100644
--- a/Source/core/workers/WorkerThreadStartupData.cpp
+++ b/Source/core/workers/WorkerThreadStartupData.cpp
@@ -46,6 +46,9 @@ WorkerThreadStartupData::WorkerThreadStartupData(const KURL& scriptURL, const St
, m_v8CacheOptions(v8CacheOptions)
{
m_contentSecurityPolicyHeaders = adoptPtr(new Vector<CSPHeaderAndType>());
+ if (!contentSecurityPolicyHeaders)
+ return;
+
for (const auto& header : *contentSecurityPolicyHeaders) {
CSPHeaderAndType copiedHeader(header.first.isolatedCopy(), header.second);
m_contentSecurityPolicyHeaders->append(copiedHeader);
« no previous file with comments | « Source/core/workers/WorkerScriptLoaderClient.h ('k') | Source/web/SharedWorkerRepositoryClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698