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

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

Issue 1308183005: Introduce WebTaskRunner Patch 2/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final tweaks Created 5 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_plugin.cc ('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 a3cd68cc43e1fde714659414bddd30a36ea6cf4c..5ca7c453b189093d8f949ec47a90ec1fd74f94f4 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -56,6 +56,7 @@
#include "third_party/WebKit/public/platform/WebRect.h"
#include "third_party/WebKit/public/platform/WebSize.h"
#include "third_party/WebKit/public/platform/WebString.h"
+#include "third_party/WebKit/public/platform/WebTaskRunner.h"
#include "third_party/WebKit/public/platform/WebThread.h"
#include "third_party/WebKit/public/platform/WebTraceLocation.h"
#include "third_party/WebKit/public/platform/WebURL.h"
@@ -107,7 +108,7 @@ namespace content {
namespace {
-class InvokeTaskHelper : public WebThread::Task {
+class InvokeTaskHelper : public blink::WebTaskRunner::Task {
public:
InvokeTaskHelper(scoped_ptr<test_runner::WebTask> task)
: task_(task.Pass()) {}
@@ -290,14 +291,14 @@ void BlinkTestRunner::PrintMessage(const std::string& message) {
}
void BlinkTestRunner::PostTask(test_runner::WebTask* task) {
- Platform::current()->currentThread()->postTask(
+ Platform::current()->currentThread()->taskRunner()->postTask(
WebTraceLocation(__FUNCTION__, __FILE__),
new InvokeTaskHelper(make_scoped_ptr(task)));
}
void BlinkTestRunner::PostDelayedTask(test_runner::WebTask* task,
long long ms) {
- Platform::current()->currentThread()->postDelayedTask(
+ Platform::current()->currentThread()->taskRunner()->postDelayedTask(
WebTraceLocation(__FUNCTION__, __FILE__),
new InvokeTaskHelper(make_scoped_ptr(task)), ms);
}
« no previous file with comments | « components/test_runner/test_plugin.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698