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

Unified Diff: components/test_runner/test_plugin.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/scheduler/scheduler.gypi ('k') | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_plugin.cc
diff --git a/components/test_runner/test_plugin.cc b/components/test_runner/test_plugin.cc
index 4b3d50064ff44374585478977ba3ab480a3829de..f2fc97afcbcc3ed3858f68f256825770467716f3 100644
--- a/components/test_runner/test_plugin.cc
+++ b/components/test_runner/test_plugin.cc
@@ -14,6 +14,7 @@
#include "third_party/WebKit/public/platform/Platform.h"
#include "third_party/WebKit/public/platform/WebCompositorSupport.h"
#include "third_party/WebKit/public/platform/WebGraphicsContext3D.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/web/WebFrame.h"
@@ -125,7 +126,7 @@ blink::WebPluginContainer::TouchEventRequestType ParseTouchEventRequestType(
return blink::WebPluginContainer::TouchEventRequestTypeNone;
}
-class DeferredDeleteTask : public blink::WebThread::Task {
+class DeferredDeleteTask : public blink::WebTaskRunner::Task {
public:
DeferredDeleteTask(scoped_ptr<TestPlugin> plugin) : plugin_(plugin.Pass()) {}
@@ -253,7 +254,7 @@ void TestPlugin::destroy() {
container_ = 0;
frame_ = 0;
- blink::Platform::current()->mainThread()->postTask(
+ blink::Platform::current()->mainThread()->taskRunner()->postTask(
blink::WebTraceLocation(__FUNCTION__, __FILE__),
new DeferredDeleteTask(make_scoped_ptr(this)));
}
« no previous file with comments | « components/scheduler/scheduler.gypi ('k') | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698