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 e493e5c3a6f1a360870a79d353623156fb5e3c9d..34af46d1816b2c8b12060c3e6edeb6f6c4c57df9 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 { |
@@ -41,7 +42,7 @@ PassRefPtr<SharedWorkerThread> SharedWorkerThread::create(const String& name, Pa |
} |
SharedWorkerThread::SharedWorkerThread(const String& name, PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy) |
- : WorkerThread(workerLoaderProxy, workerReportingProxy) |
+ : WorkerThread(workerLoaderProxy, workerReportingProxy, WorkerBackingThread::create("SharedWorker Thread")) |
, m_name(name.isolatedCopy()) |
{ |
} |
@@ -55,11 +56,4 @@ PassRefPtrWillBeRawPtr<WorkerGlobalScope> SharedWorkerThread::createWorkerGlobal |
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 |