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 8740657804fba49e9ec11152027a30165dedc36a..de82e2937513e03cc8faaa22436b9b45b2e6276c 100644 |
--- a/third_party/WebKit/Source/core/html/parser/HTMLParserThread.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/HTMLParserThread.cpp |
@@ -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, AllowCrossThreadAccess(s_sharedThread), AllowCrossThreadAccess(&waitableEvent))); |
+ s_sharedThread->postTask(threadSafeBind(&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, AllowCrossThreadAccess(this))); |
+ postTask(threadSafeBind(&HTMLParserThread::setupHTMLParserThread, crossThreadUnretained(this))); |
} |
m_thread->postTask(BLINK_FROM_HERE, std::move(closure)); |