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

Unified Diff: third_party/WebKit/Source/core/dom/Microtask.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/core/dom/Microtask.cpp
diff --git a/third_party/WebKit/Source/core/dom/Microtask.cpp b/third_party/WebKit/Source/core/dom/Microtask.cpp
index 933dbe5091f2f44175fbf1c38f13dee7b04abd6f..400419f0b000cd1538f062d4fa09b134300e1130 100644
--- a/third_party/WebKit/Source/core/dom/Microtask.cpp
+++ b/third_party/WebKit/Source/core/dom/Microtask.cpp
@@ -73,7 +73,7 @@ void Microtask::enqueueMicrotask(PassOwnPtr<WebTaskRunner::Task> callback)
void Microtask::enqueueMicrotask(PassOwnPtr<Closure> callback)
{
- enqueueMicrotask(adoptPtr(new Task(callback)));
+ enqueueMicrotask(adoptPtr(new SameThreadTask(callback)));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698