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

Unified Diff: Source/web/WebSharedWorkerImpl.cpp

Issue 204983007: Make ThreadableLoader class to use references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments 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
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSharedWorkerImpl.cpp
diff --git a/Source/web/WebSharedWorkerImpl.cpp b/Source/web/WebSharedWorkerImpl.cpp
index a9db95ce00153e7d3d03259b41ef562c17c14056..3b2fb3d0379046a18f90f189e1078f968eccf9b4 100644
--- a/Source/web/WebSharedWorkerImpl.cpp
+++ b/Source/web/WebSharedWorkerImpl.cpp
@@ -89,11 +89,12 @@ public:
void load(ExecutionContext* loadingContext, const KURL& scriptURL, const Closure& receiveResponseCallback, const Closure& finishCallback)
{
+ ASSERT(loadingContext);
m_receiveResponseCallback = receiveResponseCallback;
m_finishCallback = finishCallback;
m_scriptLoader->setTargetType(ResourceRequest::TargetIsSharedWorker);
m_scriptLoader->loadAsynchronously(
- loadingContext, scriptURL, DenyCrossOriginRequests, this);
+ *loadingContext, scriptURL, DenyCrossOriginRequests, this);
}
void didReceiveResponse(unsigned long identifier, const ResourceResponse& response) OVERRIDE
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698