| Index: third_party/WebKit/Source/core/html/parser/HTMLParserThread.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLParserThread.cpp b/third_party/WebKit/Source/core/html/parser/HTMLParserThread.cpp
|
| index de82e2937513e03cc8faaa22436b9b45b2e6276c..7ed7aa7541bb2d2308e16892204445bed46a83a8 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLParserThread.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLParserThread.cpp
|
| @@ -30,7 +30,7 @@
|
|
|
| #include "core/html/parser/HTMLParserThread.h"
|
|
|
| -#include "platform/ThreadSafeFunctional.h"
|
| +#include "platform/CrossThreadFunctional.h"
|
| #include "platform/WaitableEvent.h"
|
| #include "platform/heap/SafePoint.h"
|
| #include "public/platform/Platform.h"
|
| @@ -67,7 +67,7 @@ void HTMLParserThread::shutdown()
|
| // currentThread will always be non-null in production, but can be null in Chromium unit tests.
|
| if (Platform::current()->currentThread() && s_sharedThread->m_thread) {
|
| WaitableEvent waitableEvent;
|
| - s_sharedThread->postTask(threadSafeBind(&HTMLParserThread::cleanupHTMLParserThread, crossThreadUnretained(s_sharedThread), crossThreadUnretained(&waitableEvent)));
|
| + s_sharedThread->postTask(crossThreadBind(&HTMLParserThread::cleanupHTMLParserThread, crossThreadUnretained(s_sharedThread), crossThreadUnretained(&waitableEvent)));
|
| SafePointScope scope(BlinkGC::HeapPointersOnStack);
|
| waitableEvent.wait();
|
| }
|
| @@ -91,7 +91,7 @@ void HTMLParserThread::postTask(std::unique_ptr<CrossThreadClosure> closure)
|
| ASSERT(isMainThread());
|
| if (!m_thread) {
|
| m_thread = WebThreadSupportingGC::create("HTMLParserThread");
|
| - postTask(threadSafeBind(&HTMLParserThread::setupHTMLParserThread, crossThreadUnretained(this)));
|
| + postTask(crossThreadBind(&HTMLParserThread::setupHTMLParserThread, crossThreadUnretained(this)));
|
| }
|
|
|
| m_thread->postTask(BLINK_FROM_HERE, std::move(closure));
|
|
|