Index: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
diff --git a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
index 12bc6d2c8a3967693d5fd7ab3d4171ad93acdb00..1d5d577c573e56c85b77ff6ce3b27572524aafdf 100644 |
--- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
+++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp |
@@ -81,7 +81,7 @@ void runServeAsyncRequestsTask(TestWebFrameClient* client) |
{ |
Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests(); |
if (client->isLoading()) |
- Platform::current()->currentThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, bind(&runServeAsyncRequestsTask, client)); |
+ Platform::current()->currentThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, bind(&runServeAsyncRequestsTask, WTF::unretained(client))); |
else |
testing::exitRunLoop(); |
} |
@@ -149,7 +149,7 @@ void reloadFrameIgnoringCache(WebFrame* frame) |
void pumpPendingRequestsForFrameToLoad(WebFrame* frame) |
{ |
- Platform::current()->currentThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, bind(&runServeAsyncRequestsTask, testClientForFrame(frame))); |
+ Platform::current()->currentThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, bind(&runServeAsyncRequestsTask, WTF::unretained(testClientForFrame(frame)))); |
testing::enterRunLoop(); |
} |