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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2357043003: Remove WebCallbackTask (Closed)
Patch Set: remove WebTaskRunner::postTask(base::Closure). git cl format Created 4 years, 3 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
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index 8151a20fa28d164833f1fd9258862fe3c4dae824..da1272fb7a1e550451d50f6f90cd46e5ebaa14ec 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -293,13 +293,15 @@ void BlinkTestRunner::PrintMessage(const std::string& message) {
Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
}
-void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) {
- Platform::current()->currentThread()->getWebTaskRunner()->postTask(
- BLINK_FROM_HERE, task);
+void BlinkTestRunner::PostTask(const base::Closure& task) {
+ Platform::current()
+ ->currentThread()
+ ->getWebTaskRunner()
+ ->toSingleThreadTaskRunner()
+ ->PostTask(BLINK_FROM_HERE, task);
}
-void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task,
- long long ms) {
+void BlinkTestRunner::PostDelayedTask(const base::Closure& task, long long ms) {
Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask(
BLINK_FROM_HERE, task, ms);
}
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698