| Index: third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
|
| index 7b81cd8358b89f19cfc4deea2a657eedd2934eeb..2bf55411d711beda4bd83c74bcec070e7054f13f 100644
|
| --- a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp
|
| @@ -82,7 +82,7 @@ void WorkerScriptLoader::loadSynchronously(ExecutionContext& executionContext, c
|
| WorkerThreadableLoader::loadResourceSynchronously(toWorkerGlobalScope(executionContext), request, *this, options, resourceLoaderOptions);
|
| }
|
|
|
| -void WorkerScriptLoader::loadAsynchronously(ExecutionContext& executionContext, const KURL& url, CrossOriginRequestPolicy crossOriginRequestPolicy, PassOwnPtr<Closure> responseCallback, PassOwnPtr<Closure> finishedCallback)
|
| +void WorkerScriptLoader::loadAsynchronously(ExecutionContext& executionContext, const KURL& url, CrossOriginRequestPolicy crossOriginRequestPolicy, PassOwnPtr<SameThreadClosure> responseCallback, PassOwnPtr<SameThreadClosure> finishedCallback)
|
| {
|
| ASSERT(responseCallback || finishedCallback);
|
| m_responseCallback = responseCallback;
|
| @@ -222,7 +222,7 @@ void WorkerScriptLoader::notifyFinished()
|
| if (!m_finishedCallback)
|
| return;
|
|
|
| - OwnPtr<Closure> callback = m_finishedCallback.release();
|
| + OwnPtr<SameThreadClosure> callback = m_finishedCallback.release();
|
| (*callback)();
|
| }
|
|
|
|
|