summaryrefslogtreecommitdiffstats
path: root/cloud_print/service/win
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_print/service/win')
-rw-r--r--cloud_print/service/win/service_listener.cc4
-rw-r--r--cloud_print/service/win/setup_listener.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/cloud_print/service/win/service_listener.cc b/cloud_print/service/win/service_listener.cc
index 53622a8..bdb2217 100644
--- a/cloud_print/service/win/service_listener.cc
+++ b/cloud_print/service/win/service_listener.cc
@@ -91,8 +91,8 @@ void ServiceListener::Connect() {
SECURITY_SQOS_PRESENT | SECURITY_IDENTIFICATION |
FILE_FLAG_OVERLAPPED, NULL));
if (handle.IsValid()) {
- channel_.reset(new IPC::Channel(IPC::ChannelHandle(handle),
- IPC::Channel::MODE_CLIENT, this));
+ channel_ = IPC::Channel::CreateClient(IPC::ChannelHandle(handle),
+ this);
channel_->Connect();
} else {
ipc_thread_->message_loop()->PostDelayedTask(
diff --git a/cloud_print/service/win/setup_listener.cc b/cloud_print/service/win/setup_listener.cc
index dd1cb37..c0b6d1b 100644
--- a/cloud_print/service/win/setup_listener.cc
+++ b/cloud_print/service/win/setup_listener.cc
@@ -117,8 +117,8 @@ void SetupListener::Connect(const base::string16& user) {
IPC::Channel::kReadBufferSize,
IPC::Channel::kReadBufferSize, 5000, &attribs));
if (pipe.IsValid()) {
- channel_.reset(new IPC::Channel(IPC::ChannelHandle(pipe),
- IPC::Channel::MODE_SERVER, this));
+ channel_ = IPC::Channel::CreateServer(IPC::ChannelHandle(pipe),
+ this);
channel_->Connect();
}
}