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

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

Issue 2110363002: Rename SameThreadClosure to Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ExplicitWTFBind
Patch Set: Created 4 years, 6 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/Microtask.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/Microtask.cpp b/third_party/WebKit/Source/bindings/core/v8/Microtask.cpp
index f87775d492d365035fc5b2705beb2ec2bf4b87f0..785ce63e53df05516057c00ab28bd1064b2becaa 100644
--- a/third_party/WebKit/Source/bindings/core/v8/Microtask.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/Microtask.cpp
@@ -44,11 +44,11 @@ void Microtask::performCheckpoint(v8::Isolate* isolate)
static void microtaskFunctionCallback(void* data)
{
- std::unique_ptr<SameThreadClosure> task = wrapUnique(static_cast<SameThreadClosure*>(data));
+ std::unique_ptr<Closure> task = wrapUnique(static_cast<Closure*>(data));
(*task)();
}
-void Microtask::enqueueMicrotask(std::unique_ptr<SameThreadClosure> callback)
+void Microtask::enqueueMicrotask(std::unique_ptr<Closure> callback)
{
v8::Isolate* isolate = v8::Isolate::GetCurrent();
isolate->EnqueueMicrotask(&microtaskFunctionCallback, static_cast<void*>(callback.release()));

Powered by Google App Engine
This is Rietveld 408576698