Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp

Issue 1549143002: Add thread affinity and ASSERT() for same-thread restriction to WTF::Function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ThreadSafeBindByVariadicTemplate
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp
index 4b7027cf572c8a871b82f0c6120ecce654ed255e..8e495924060181a4f59a550f878a022642258131 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp
@@ -53,7 +53,7 @@ ScriptStreamerThread* ScriptStreamerThread::shared()
return s_sharedThread;
}
-void ScriptStreamerThread::postTask(PassOwnPtr<Closure> task)
+void ScriptStreamerThread::postTask(PassOwnPtr<CrossThreadClosure> task)
{
ASSERT(isMainThread());
MutexLocker locker(m_mutex);

Powered by Google App Engine
This is Rietveld 408576698