Index: ipc/ipc_perftests.cc |
diff --git a/ipc/ipc_perftests.cc b/ipc/ipc_perftests.cc |
index d4b1abdbc7e53b94fa3dcc72721e776cbf42d81b..3feabda9d106382a2774714a49c492ce7d54c8a3 100644 |
--- a/ipc/ipc_perftests.cc |
+++ b/ipc/ipc_perftests.cc |
@@ -265,11 +265,10 @@ TEST_F(IPCChannelPerfTest, Performance) { |
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(PerformanceClient) { |
base::MessageLoopForIO main_message_loop; |
ChannelReflectorListener listener; |
- IPC::Channel channel(IPCTestBase::GetChannelName("PerformanceClient"), |
- IPC::Channel::MODE_CLIENT, |
- &listener); |
- listener.Init(&channel); |
- CHECK(channel.Connect()); |
+ scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
+ IPCTestBase::GetChannelName("PerformanceClient"), &listener)); |
+ listener.Init(channel.get()); |
+ CHECK(channel->Connect()); |
base::MessageLoop::current()->Run(); |
return 0; |