Index: cloud_print/service/win/setup_listener.cc |
diff --git a/cloud_print/service/win/setup_listener.cc b/cloud_print/service/win/setup_listener.cc |
index dd1cb375d2127cb37051b3fcf2f86150f0628a7a..c0b6d1b9b3e5e814b254fe38e2448757b652ad87 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(); |
} |
} |