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

Unified Diff: cloud_print/service/win/service_listener.cc

Issue 307653003: Introduce IPC::Channel::Create*() to ensure it being heap-allocated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing windows build, landing again. 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: 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(
« no previous file with comments | « chrome/utility/importer/firefox_importer_unittest_utils_mac.cc ('k') | cloud_print/service/win/setup_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698