Index: ipc/ipc_channel_unittest.cc |
diff --git a/ipc/ipc_channel_unittest.cc b/ipc/ipc_channel_unittest.cc |
index eea432a15e73c22aa3077fef06edc005463e2acc..b9665dbed7304ee3c4fa893ee10879aa6eac4d65 100644 |
--- a/ipc/ipc_channel_unittest.cc |
+++ b/ipc/ipc_channel_unittest.cc |
@@ -254,12 +254,12 @@ MULTIPROCESS_IPC_TEST_CLIENT_MAIN(GenericClient) { |
GenericChannelListener listener; |
// Set up IPC channel. |
- IPC::Channel channel(IPCTestBase::GetChannelName("GenericClient"), |
- IPC::Channel::MODE_CLIENT, |
- &listener); |
- CHECK(channel.Connect()); |
- listener.Init(&channel); |
- Send(&channel, "hello from child"); |
+ scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
+ IPCTestBase::GetChannelName("GenericClient"), |
+ &listener)); |
+ CHECK(channel->Connect()); |
+ listener.Init(channel.get()); |
+ Send(channel.get(), "hello from child"); |
base::MessageLoop::current()->Run(); |
return 0; |