Index: ipc/ipc_fuzzing_tests.cc |
diff --git a/ipc/ipc_fuzzing_tests.cc b/ipc/ipc_fuzzing_tests.cc |
index 1ed9acd732481ce6b3b23cbbd8acd382f368084b..4abcc4c6254308a8d2980d72ccebd9cdd7bd7a37 100644 |
--- a/ipc/ipc_fuzzing_tests.cc |
+++ b/ipc/ipc_fuzzing_tests.cc |
@@ -247,11 +247,11 @@ class FuzzerClientListener : public SimpleListener { |
MULTIPROCESS_IPC_TEST_CLIENT_MAIN(FuzzServerClient) { |
base::MessageLoopForIO main_message_loop; |
FuzzerServerListener listener; |
- IPC::Channel channel(IPCTestBase::GetChannelName("FuzzServerClient"), |
- IPC::Channel::MODE_CLIENT, |
- &listener); |
- CHECK(channel.Connect()); |
- listener.Init(&channel); |
+ scoped_ptr<IPC::Channel> channel(IPC::Channel::CreateClient( |
+ IPCTestBase::GetChannelName("FuzzServerClient"), |
+ &listener)); |
+ CHECK(channel->Connect()); |
+ listener.Init(channel.get()); |
base::MessageLoop::current()->Run(); |
return 0; |
} |