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

Unified Diff: Source/core/dom/Microtask.cpp

Issue 705003002: Change the return type of WTF::bind() to |OwnPtr<Function>| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reflect comments from yhirano Created 6 years, 1 month 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
« no previous file with comments | « Source/core/dom/Microtask.h ('k') | Source/core/html/canvas/CanvasRenderingContext2D.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Microtask.cpp
diff --git a/Source/core/dom/Microtask.cpp b/Source/core/dom/Microtask.cpp
index 56de67277d06b9b141435a0f1769d19bbdb97e19..42a5c065eacb6abd65d9cc7ab1fe968bd80f780f 100644
--- a/Source/core/dom/Microtask.cpp
+++ b/Source/core/dom/Microtask.cpp
@@ -73,7 +73,7 @@ void Microtask::enqueueMicrotask(PassOwnPtr<WebThread::Task> callback)
isolate->EnqueueMicrotask(&microtaskFunctionCallback, callback.leakPtr());
}
-void Microtask::enqueueMicrotask(const Closure& callback)
+void Microtask::enqueueMicrotask(PassOwnPtr<Closure> callback)
{
enqueueMicrotask(adoptPtr(new Task(callback)));
}
« no previous file with comments | « Source/core/dom/Microtask.h ('k') | Source/core/html/canvas/CanvasRenderingContext2D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698