| Index: content/renderer/p2p/p2p_transport_impl_unittest.cc
|
| diff --git a/content/renderer/p2p/p2p_transport_impl_unittest.cc b/content/renderer/p2p/p2p_transport_impl_unittest.cc
|
| index 6dabbc8da45df49f3e046e265f80c98742072ed1..6fcc2b01581674f633ff6a86533b9463d2cfdb71 100644
|
| --- a/content/renderer/p2p/p2p_transport_impl_unittest.cc
|
| +++ b/content/renderer/p2p/p2p_transport_impl_unittest.cc
|
| @@ -84,7 +84,7 @@ class UdpChannelTester : public base::RefCountedThreadSafe<UdpChannelTester> {
|
| protected:
|
| void Done() {
|
| done_ = true;
|
| - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask());
|
| + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
|
| }
|
|
|
| void DoStart() {
|
| @@ -241,7 +241,7 @@ class TcpChannelTester : public base::RefCountedThreadSafe<TcpChannelTester> {
|
| protected:
|
| void Done() {
|
| done_ = true;
|
| - message_loop_->PostTask(FROM_HERE, new MessageLoop::QuitTask());
|
| + message_loop_->PostTask(FROM_HERE, MessageLoop::QuitClosure());
|
| }
|
|
|
| void DoWrite() {
|
| @@ -434,7 +434,7 @@ TEST_F(P2PTransportImplTest, SendDataUdp) {
|
| scoped_refptr<UdpChannelTester> channel_tester = new UdpChannelTester(
|
| &message_loop_, transport1_->GetChannel(), transport2_->GetChannel());
|
|
|
| - message_loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(),
|
| + message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(),
|
| TestTimeouts::action_max_timeout_ms());
|
|
|
| channel_tester->Start();
|
| @@ -479,7 +479,7 @@ TEST_F(P2PTransportImplTest, SendDataTcp) {
|
| &TcpChannelTester::StartRead))
|
| .RetiresOnSaturation();
|
|
|
| - message_loop_.PostDelayedTask(FROM_HERE, new MessageLoop::QuitTask(),
|
| + message_loop_.PostDelayedTask(FROM_HERE, MessageLoop::QuitClosure(),
|
| TestTimeouts::action_max_timeout_ms());
|
|
|
| channel_tester->Init();
|
|
|