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