Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: trunk/src/chrome/browser/service_process/service_process_control.cc

Issue 312553004: Revert 274310 "Introduce IPC::ChannelProxy::Create*() and IPC::S..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {
« no previous file with comments | « trunk/src/chrome/browser/service_process/service_process_control.h ('k') | trunk/src/chrome/service/service_ipc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698