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

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: Add WTF:: to Closure 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..593a8834043c63be5d6f7c2aa3c06e5fa5d652da 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<WTF::Closure> task = wrapUnique(static_cast<WTF::Closure*>(data));
(*task)();
}
-void Microtask::enqueueMicrotask(std::unique_ptr<SameThreadClosure> callback)
+void Microtask::enqueueMicrotask(std::unique_ptr<WTF::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