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

Unified Diff: components/html_viewer/web_test_delegate_impl.cc

Issue 1309423004: Introduce WebTaskRunner Patch 4/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try and fix compile 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 | « no previous file | components/scheduler/child/web_scheduler_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_test_delegate_impl.cc
diff --git a/components/html_viewer/web_test_delegate_impl.cc b/components/html_viewer/web_test_delegate_impl.cc
index 5385a660b454a48cbf051db0a7c590c8bca9647a..16ea00cb1d6bc733263c9e069b10f70d08bb971c 100644
--- a/components/html_viewer/web_test_delegate_impl.cc
+++ b/components/html_viewer/web_test_delegate_impl.cc
@@ -11,6 +11,7 @@
#include "components/test_runner/web_test_proxy.h"
#include "third_party/WebKit/public/platform/Platform.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"
@@ -20,7 +21,7 @@ namespace html_viewer {
namespace {
-class InvokeTaskHelper : public blink::WebThread::Task {
+class InvokeTaskHelper : public blink::WebTaskRunner::Task {
public:
InvokeTaskHelper(scoped_ptr<test_runner::WebTask> task)
: task_(task.Pass()) {}
@@ -88,14 +89,14 @@ void WebTestDelegateImpl::PrintMessage(const std::string& message) {
}
void WebTestDelegateImpl::PostTask(test_runner::WebTask* task) {
- blink::Platform::current()->currentThread()->postTask(
+ blink::Platform::current()->currentThread()->taskRunner()->postTask(
blink::WebTraceLocation(__FUNCTION__, __FILE__),
new InvokeTaskHelper(make_scoped_ptr(task)));
}
void WebTestDelegateImpl::PostDelayedTask(test_runner::WebTask* task,
long long ms) {
- blink::Platform::current()->currentThread()->postDelayedTask(
+ blink::Platform::current()->currentThread()->taskRunner()->postDelayedTask(
blink::WebTraceLocation(__FUNCTION__, __FILE__),
new InvokeTaskHelper(make_scoped_ptr(task)), ms);
}
« no previous file with comments | « no previous file | components/scheduler/child/web_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698