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

Unified Diff: Source/web/tests/WebViewTest.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/web/tests/WebViewTest.cpp
diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp
index 73b461dc92b5af09ba5bfcafd29d4d8157fdea40..4b4d91022aceacfe1beea4362c52d5463711e365 100644
--- a/Source/web/tests/WebViewTest.cpp
+++ b/Source/web/tests/WebViewTest.cpp
@@ -1299,7 +1299,7 @@ TEST_F(WebViewTest, PrintWithXHRInFlight)
m_webViewHelper.reset();
}
-class DropTask : public WebThread::Task {
+class DropTask : public WebTaskRunner::Task {
public:
explicit DropTask(WebView* webView) : m_webView(webView)
{
@@ -1329,7 +1329,7 @@ static void DragAndDropURL(WebViewImpl* webView, const std::string& url)
const WebPoint clientPoint(0, 0);
const WebPoint screenPoint(0, 0);
webView->dragTargetDragEnter(dragData, clientPoint, screenPoint, WebDragOperationCopy, 0);
- Platform::current()->currentThread()->postTask(FROM_HERE, new DropTask(webView));
+ Platform::current()->currentThread()->defaultTaskRunner()->postTask(FROM_HERE, new DropTask(webView));
FrameTestHelpers::pumpPendingRequestsDoNotUse(webView->mainFrame());
}

Powered by Google App Engine
This is Rietveld 408576698