Index: third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp |
diff --git a/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp b/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp |
index 69a0d2b760f9befe0d0ef74f6f94674c8f289bdd..e4c062cf864fe55bba8c0500a9e1d05b7fae8e22 100644 |
--- a/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp |
+++ b/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp |
@@ -31,6 +31,7 @@ |
#include "core/workers/SharedWorkerThread.h" |
#include "core/workers/SharedWorkerGlobalScope.h" |
+#include "core/workers/WorkerBackingThread.h" |
#include "core/workers/WorkerThreadStartupData.h" |
namespace blink { |
@@ -42,6 +43,7 @@ PassOwnPtr<SharedWorkerThread> SharedWorkerThread::create(const String& name, Pa |
SharedWorkerThread::SharedWorkerThread(const String& name, PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy) |
: WorkerThread(workerLoaderProxy, workerReportingProxy) |
+ , m_workerBackingThread(WorkerBackingThread::create("SharedWorker Thread")) |
, m_name(name.isolatedCopy()) |
{ |
} |
@@ -55,11 +57,4 @@ WorkerGlobalScope* SharedWorkerThread::createWorkerGlobalScope(PassOwnPtr<Worker |
return SharedWorkerGlobalScope::create(m_name, this, startupData); |
} |
-WebThreadSupportingGC& SharedWorkerThread::backingThread() |
-{ |
- if (!m_thread) |
- m_thread = WebThreadSupportingGC::create("SharedWorker Thread"); |
- return *m_thread.get(); |
-} |
- |
} // namespace blink |