Index: chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc |
diff --git a/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc b/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc |
index cce36d643d0930e381edbf9b9601540d5cc37b5b..e2ecd5fb326c73fdbe7974f781537e1181eae394 100644 |
--- a/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc |
+++ b/chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc |
@@ -266,11 +266,10 @@ int CloudPrintMockService_Main(SetExpectationsCallback set_expectations) { |
CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
switches::kProcessChannelID); |
scoped_ptr<IPC::ChannelProxy> startup_channel; |
- startup_channel.reset( |
- new IPC::ChannelProxy(startup_channel_name, |
- IPC::Channel::MODE_CLIENT, |
- &listener, |
- service_process.IOMessageLoopProxy())); |
+ startup_channel = IPC::ChannelProxy::CreateClient( |
+ startup_channel_name, |
+ &listener, |
+ service_process.IOMessageLoopProxy()); |
main_message_loop.Run(); |
if (!Mock::VerifyAndClearExpectations(&server)) |
@@ -442,9 +441,8 @@ base::ProcessHandle CloudPrintProxyPolicyStartupTest::Launch( |
base::StringPrintf("%d.%p.%d", |
base::GetCurrentProcId(), this, |
base::RandInt(0, std::numeric_limits<int>::max())); |
- startup_channel_.reset(new IPC::ChannelProxy( |
- startup_channel_id_, IPC::Channel::MODE_SERVER, |
- this, IOMessageLoopProxy())); |
+ startup_channel_ = IPC::ChannelProxy::CreateServer( |
+ startup_channel_id_, this, IOMessageLoopProxy()); |
#if defined(OS_POSIX) |
base::FileHandleMappingVector ipc_file_list; |
@@ -466,10 +464,10 @@ void CloudPrintProxyPolicyStartupTest::WaitForConnect() { |
EXPECT_TRUE(CheckServiceProcessReady()); |
EXPECT_TRUE(base::MessageLoopProxy::current().get()); |
ServiceProcessControl::GetInstance()->SetChannel( |
- new IPC::ChannelProxy(GetServiceProcessChannel(), |
- IPC::Channel::MODE_NAMED_CLIENT, |
- ServiceProcessControl::GetInstance(), |
- IOMessageLoopProxy())); |
+ IPC::ChannelProxy::CreateNamedClient( |
+ GetServiceProcessChannel(), |
+ ServiceProcessControl::GetInstance(), |
+ IOMessageLoopProxy())); |
} |
bool CloudPrintProxyPolicyStartupTest::Send(IPC::Message* message) { |