Index: Source/web/WebEmbeddedWorkerImpl.cpp |
diff --git a/Source/web/WebEmbeddedWorkerImpl.cpp b/Source/web/WebEmbeddedWorkerImpl.cpp |
index 24a2327033df1285e3e2da989832efe0c811ef32..dce0093f37f4d53b1ad2e563169146251ea01120 100644 |
--- a/Source/web/WebEmbeddedWorkerImpl.cpp |
+++ b/Source/web/WebEmbeddedWorkerImpl.cpp |
@@ -79,7 +79,7 @@ public: |
m_scriptLoader->setClient(0); |
} |
- void load(ExecutionContext* loadingContext, const KURL& scriptURL, const Closure& callback) |
+ void load(ExecutionContext* loadingContext, const KURL& scriptURL, PassOwnPtr<Closure> callback) |
{ |
ASSERT(loadingContext); |
m_callback = callback; |
@@ -90,7 +90,7 @@ public: |
virtual void notifyFinished() override |
{ |
- m_callback(); |
+ (*m_callback)(); |
} |
void cancel() |
@@ -108,7 +108,7 @@ private: |
} |
RefPtr<WorkerScriptLoader> m_scriptLoader; |
- Closure m_callback; |
+ OwnPtr<Closure> m_callback; |
}; |
class WebEmbeddedWorkerImpl::LoaderProxy : public WorkerLoaderProxy { |