Index: cloud_print/service/win/service_listener.cc |
diff --git a/cloud_print/service/win/service_listener.cc b/cloud_print/service/win/service_listener.cc |
index 53622a8b2bed116b1fef382863130ade268467e6..bdb221743bb4688cc2a47115b4c1f93863ed192b 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( |