Index: Source/core/workers/WorkerThread.cpp |
diff --git a/Source/core/workers/WorkerThread.cpp b/Source/core/workers/WorkerThread.cpp |
index f9893705bf31c1c30077863ed0c4821237627f04..ec21aecf1fd0e24c4e9052a1a250a3ffbbce8b1e 100644 |
--- a/Source/core/workers/WorkerThread.cpp |
+++ b/Source/core/workers/WorkerThread.cpp |
@@ -290,7 +290,7 @@ void WorkerThread::start() |
if (m_thread) |
return; |
- m_thread = WebThreadSupportingGC::create("WebCore: Worker"); |
+ m_thread = createWebThreadSupportingGC(); |
m_thread->postTask(FROM_HERE, new Task(WTF::bind(&WorkerThread::initialize, this))); |
} |
@@ -360,6 +360,11 @@ void WorkerThread::initialize() |
postDelayedTask(FROM_HERE, createSameThreadTask(&WorkerThread::idleHandler, this), kShortIdleHandlerDelayMs); |
} |
+PassOwnPtr<WebThreadSupportingGC> WorkerThread::createWebThreadSupportingGC() |
+{ |
+ return WebThreadSupportingGC::create("WebCore: Worker"); |
+} |
+ |
void WorkerThread::cleanup() |
{ |
// This should be called before we start the shutdown procedure. |