Index: Source/modules/serviceworkers/ServiceWorkerThread.cpp |
diff --git a/Source/modules/serviceworkers/ServiceWorkerThread.cpp b/Source/modules/serviceworkers/ServiceWorkerThread.cpp |
index 3a27a068169248e12f9213c16467cded55242b09..a76f73a349f8987a6988919ac5468118dfb639f7 100644 |
--- a/Source/modules/serviceworkers/ServiceWorkerThread.cpp |
+++ b/Source/modules/serviceworkers/ServiceWorkerThread.cpp |
@@ -56,11 +56,11 @@ PassRefPtrWillBeRawPtr<WorkerGlobalScope> ServiceWorkerThread::createWorkerGloba |
return ServiceWorkerGlobalScope::create(this, startupData); |
} |
-WebThreadSupportingGC& ServiceWorkerThread::backingThread() |
+WebThread& ServiceWorkerThread::backingThread() |
{ |
if (!m_thread) |
- m_thread = WebThreadSupportingGC::create("ServiceWorker Thread"); |
- return *m_thread.get(); |
+ m_thread = adoptPtr(Platform::current()->createThread("ServiceWorker Thread")); |
+ return *m_thread; |
} |
} // namespace blink |