Index: ipc/sync_socket_unittest.cc |
diff --git a/ipc/sync_socket_unittest.cc b/ipc/sync_socket_unittest.cc |
index 288860713ad7e55b7bcf8d9badb9e2330d63a7d9..5527abc4b538553dd6a70a29460e84aa28bd17d0 100644 |
--- a/ipc/sync_socket_unittest.cc |
+++ b/ipc/sync_socket_unittest.cc |
@@ -108,11 +108,11 @@ class SyncSocketServerListener : public IPC::Listener { |
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(SyncSocketServerClient) { |
base::MessageLoopForIO main_message_loop; |
SyncSocketServerListener listener; |
- IPC::Channel channel(IPCTestBase::GetChannelName("SyncSocketServerClient"), |
- IPC::Channel::MODE_CLIENT, |
- &listener); |
- EXPECT_TRUE(channel.Connect()); |
- listener.Init(&channel); |
+ scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
+ IPCTestBase::GetChannelName("SyncSocketServerClient"), |
+ &listener)); |
+ EXPECT_TRUE(channel->Connect()); |
+ listener.Init(channel.get()); |
base::MessageLoop::current()->Run(); |
return 0; |
} |