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

Unified Diff: components/test_runner/test_runner_for_specific_view.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 | « components/test_runner/test_runner.cc ('k') | components/test_runner/web_task.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner_for_specific_view.cc
diff --git a/components/test_runner/test_runner_for_specific_view.cc b/components/test_runner/test_runner_for_specific_view.cc
index 77957c2f25c3a9f9804b5700df5a96a116db3a2d..2219fe6a5415bc38f266cd323ca3a73f950d0fd9 100644
--- a/components/test_runner/test_runner_for_specific_view.cc
+++ b/components/test_runner/test_runner_for_specific_view.cc
@@ -28,7 +28,6 @@
#include "components/test_runner/test_interfaces.h"
#include "components/test_runner/test_preferences.h"
#include "components/test_runner/test_runner.h"
-#include "components/test_runner/web_task.h"
#include "components/test_runner/web_test_delegate.h"
#include "components/test_runner/web_view_test_proxy.h"
#include "gin/arguments.h"
@@ -144,12 +143,12 @@ bool TestRunnerForSpecificView::isPointerLocked() {
}
void TestRunnerForSpecificView::PostTask(const base::Closure& callback) {
- delegate()->PostTask(new WebCallbackTask(callback));
+ delegate()->PostTask(callback);
}
void TestRunnerForSpecificView::PostDelayedTask(long long delay,
const base::Closure& callback) {
- delegate()->PostDelayedTask(new WebCallbackTask(callback), delay);
+ delegate()->PostDelayedTask(callback, delay);
}
void TestRunnerForSpecificView::PostV8Callback(
« no previous file with comments | « components/test_runner/test_runner.cc ('k') | components/test_runner/web_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698