| 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 95996064cdaa0ff9155fdd5e51d40771fa60d4f8..cbf378bcffe64383fc678ab44971a6db116ecab2 100644
|
| --- a/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp
|
| @@ -80,7 +80,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, unretained(client)));
|
| else
|
| testing::exitRunLoop();
|
| }
|
| @@ -148,7 +148,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, unretained(testClientForFrame(frame))));
|
| testing::enterRunLoop();
|
| }
|
|
|
|
|