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()); |
} |