Index: trunk/src/chrome/browser/service_process/service_process_control.cc |
=================================================================== |
--- trunk/src/chrome/browser/service_process/service_process_control.cc (revision 274314) |
+++ trunk/src/chrome/browser/service_process/service_process_control.cc (working copy) |
@@ -51,14 +51,15 @@ |
// TODO(hclam): Handle error connecting to channel. |
const IPC::ChannelHandle channel_id = GetServiceProcessChannel(); |
- SetChannel(IPC::ChannelProxy::CreateNamedClient( |
+ SetChannel(new IPC::ChannelProxy( |
channel_id, |
+ IPC::Channel::MODE_NAMED_CLIENT, |
this, |
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO).get())); |
} |
-void ServiceProcessControl::SetChannel(scoped_ptr<IPC::ChannelProxy> channel) { |
- channel_ = channel.Pass(); |
+void ServiceProcessControl::SetChannel(IPC::ChannelProxy* channel) { |
+ channel_.reset(channel); |
} |
void ServiceProcessControl::RunConnectDoneTasks() { |