Chromium Code Reviews| Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp |
| diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
| index 7aeae023ddddc7a24abd700e9af6487f7f33c7c1..b63daf3846ffcc5c0c00cd8e1b270852b70a15a4 100644 |
| --- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
| +++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp |
| @@ -1345,22 +1345,13 @@ TEST_F(WebViewTest, PrintWithXHRInFlight) |
| m_webViewHelper.reset(); |
| } |
| -class DropTask : public WebTaskRunner::Task { |
|
dcheng
2016/02/22 05:02:28
This one as well.
|
| -public: |
| - explicit DropTask(WebView* webView) : m_webView(webView) |
| - { |
| - } |
| - |
| - void run() override |
| - { |
| - const WebPoint clientPoint(0, 0); |
| - const WebPoint screenPoint(0, 0); |
| - m_webView->dragTargetDrop(clientPoint, screenPoint, 0); |
| - } |
| +static void runDropTask(WebView* webView) |
| +{ |
| + const WebPoint clientPoint(0, 0); |
| + const WebPoint screenPoint(0, 0); |
| + webView->dragTargetDrop(clientPoint, screenPoint, 0); |
| +} |
| -private: |
| - WebView* const m_webView; |
| -}; |
| static void DragAndDropURL(WebViewImpl* webView, const std::string& url) |
| { |
| WebDragData dragData; |
| @@ -1375,7 +1366,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()->taskRunner()->postTask(BLINK_FROM_HERE, new DropTask(webView)); |
| + Platform::current()->currentThread()->taskRunner()->postTask(BLINK_FROM_HERE, bind(&runDropTask, webView)); |
| FrameTestHelpers::pumpPendingRequestsDoNotUse(webView->mainFrame()); |
| } |