Index: ipc/ipc_channel_posix_unittest.cc |
diff --git a/ipc/ipc_channel_posix_unittest.cc b/ipc/ipc_channel_posix_unittest.cc |
index 61c21d36c5166ab68282a5ee0ed756c471a9fc03..e8856a911c2fad5f0c9ed04994148b1686606119 100644 |
--- a/ipc/ipc_channel_posix_unittest.cc |
+++ b/ipc/ipc_channel_posix_unittest.cc |
@@ -177,7 +177,7 @@ void IPCChannelPosixTest::SpinRunLoop(int milliseconds) { |
// in the case of a bad test. Usually, the run loop will quit sooner than |
// that because all tests use a IPCChannelPosixTestListener which quits the |
// current run loop on any channel activity. |
- loop->PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(), milliseconds); |
+ loop->PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(), milliseconds); |
loop->Run(); |
} |