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

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

Issue 374583002: Replace CallClosureTask::create(bind()) with createCrossThreadTask() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move createCallClosureTask to CrossThreadTask.h Created 6 years, 5 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: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index e87bf2452add7f7cdd51586ecdb7f4d464e638f2..34272a6ecce5e0488e2b66297154608217524c75 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -5027,9 +5027,9 @@ void Document::postTask(PassOwnPtr<ExecutionContextTask> task)
m_taskRunner->postTask(task);
}
-void Document::postInspectorTask(const Closure& closure)
+void Document::postInspectorTask(PassOwnPtr<ExecutionContextTask> task)
{
- m_taskRunner->postInspectorTask(CallClosureTask::create(closure));
+ m_taskRunner->postInspectorTask(task);
}
void Document::tasksWereSuspended()

Powered by Google App Engine
This is Rietveld 408576698