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

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

Issue 204983007: Make ThreadableLoader class to use references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added asserts Created 6 years, 9 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: Source/core/workers/WorkerScriptLoader.cpp
diff --git a/Source/core/workers/WorkerScriptLoader.cpp b/Source/core/workers/WorkerScriptLoader.cpp
index ba33a8bca24cc0758143aa9a305e5f4c5ad7cdb6..e27820fee45b044e50cce4b57e78ff7f652376ad 100644
--- a/Source/core/workers/WorkerScriptLoader.cpp
+++ b/Source/core/workers/WorkerScriptLoader.cpp
@@ -69,7 +69,7 @@ void WorkerScriptLoader::loadSynchronously(ExecutionContext* executionContext, c
// FIXME: Should we add EnforceScriptSrcDirective here?
options.contentSecurityPolicyEnforcement = DoNotEnforceContentSecurityPolicy;
- WorkerThreadableLoader::loadResourceSynchronously(toWorkerGlobalScope(executionContext), *request, *this, options);
+ WorkerThreadableLoader::loadResourceSynchronously(toWorkerGlobalScope(*executionContext), *request, *this, options);
}
void WorkerScriptLoader::loadAsynchronously(ExecutionContext* executionContext, const KURL& url, CrossOriginRequestPolicy crossOriginRequestPolicy, WorkerScriptLoaderClient* client)
@@ -88,7 +88,7 @@ void WorkerScriptLoader::loadAsynchronously(ExecutionContext* executionContext,
// During create, callbacks may happen which remove the last reference to this object.
RefPtr<WorkerScriptLoader> protect(this);
- m_threadableLoader = ThreadableLoader::create(executionContext, this, *request, options);
+ m_threadableLoader = ThreadableLoader::create(*executionContext, this, *request, options);
}
const KURL& WorkerScriptLoader::responseURL() const

Powered by Google App Engine
This is Rietveld 408576698