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

Unified Diff: Source/web/WebEmbeddedWorkerImpl.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/AssociatedURLLoader.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebEmbeddedWorkerImpl.cpp
diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp
index 25de18830fe05d5ef99cb68654bc8a8ff5cc46cc..9e8c8cb44c829c8f469b0fd57de7d57b4775d61f 100644
--- a/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -74,10 +74,11 @@ public:
void load(ExecutionContext* loadingContext, const KURL& scriptURL, const Closure& callback)
{
+ ASSERT(loadingContext);
m_callback = callback;
m_scriptLoader->setTargetType(ResourceRequest::TargetIsServiceWorker);
m_scriptLoader->loadAsynchronously(
- loadingContext, scriptURL, DenyCrossOriginRequests, this);
+ *loadingContext, scriptURL, DenyCrossOriginRequests, this);
}
virtual void notifyFinished() OVERRIDE
« no previous file with comments | « Source/web/AssociatedURLLoader.cpp ('k') | Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698