summaryrefslogtreecommitdiffstats
path: root/chrome/service
diff options
context:
space:
mode:
authormorrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-02 19:41:12 +0000
committermorrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-02 19:41:12 +0000
commitcf178fb755d0fda06fd770c1a94eb8696063c001 (patch)
tree6e78f195f4731ec0231c538fc8377a3a41e8482b /chrome/service
parent7d1c92a65a91100f4cae59626107b7b74aba536b (diff)
downloadchromium_src-cf178fb755d0fda06fd770c1a94eb8696063c001.zip
chromium_src-cf178fb755d0fda06fd770c1a94eb8696063c001.tar.gz
chromium_src-cf178fb755d0fda06fd770c1a94eb8696063c001.tar.bz2
Introduce IPC::ChannelProxy::Create*() and IPC::SynChannel::Create*()
This change hides constructors of these classes so that we can turn them polymorphic classes. Note that having almost identical ChannelProxy::Init*() isn't great and they will be replaced by a factory-like abstraction in coming changes. TEST=none R=darin,cpu BUG=377980 Review URL: https://codereview.chromium.org/301973003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service')
-rw-r--r--chrome/service/service_ipc_server.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/service/service_ipc_server.cc b/chrome/service/service_ipc_server.cc
index 987f806..7d47db3 100644
--- a/chrome/service/service_ipc_server.cc
+++ b/chrome/service/service_ipc_server.cc
@@ -26,13 +26,12 @@ bool ServiceIPCServer::Init() {
void ServiceIPCServer::CreateChannel() {
channel_.reset(NULL); // Tear down the existing channel, if any.
- channel_.reset(new IPC::SyncChannel(
+ channel_= IPC::SyncChannel::CreateNamedServer(
channel_handle_,
- IPC::Channel::MODE_NAMED_SERVER,
this,
g_service_process->io_thread()->message_loop_proxy().get(),
true,
- g_service_process->shutdown_event()));
+ g_service_process->shutdown_event());
DCHECK(sync_message_filter_.get());
channel_->AddFilter(sync_message_filter_.get());
}