| Index: chrome/browser/service_process/service_process_control.cc
|
| diff --git a/chrome/browser/service_process/service_process_control.cc b/chrome/browser/service_process/service_process_control.cc
|
| index b9cfa5714646323fd7f7b646fcbe501e351cb90e..3650429c38d3033f0a70b6d142ee5fdb324994ed 100644
|
| --- a/chrome/browser/service_process/service_process_control.cc
|
| +++ b/chrome/browser/service_process/service_process_control.cc
|
| @@ -51,15 +51,15 @@ void ServiceProcessControl::ConnectInternal() {
|
|
|
| // TODO(hclam): Handle error connecting to channel.
|
| const IPC::ChannelHandle channel_id = GetServiceProcessChannel();
|
| - SetChannel(new IPC::ChannelProxy(
|
| + SetChannel(IPC::ChannelProxy::Create(
|
| channel_id,
|
| IPC::Channel::MODE_NAMED_CLIENT,
|
| this,
|
| BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO).get()));
|
| }
|
|
|
| -void ServiceProcessControl::SetChannel(IPC::ChannelProxy* channel) {
|
| - channel_.reset(channel);
|
| +void ServiceProcessControl::SetChannel(scoped_ptr<IPC::ChannelProxy> channel) {
|
| + channel_ = channel.Pass();
|
| }
|
|
|
| void ServiceProcessControl::RunConnectDoneTasks() {
|
|
|