| 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(µtaskFunctionCallback, static_cast<void*>(callback.release()));
|
|
|