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

Unified Diff: remoting/host/client_session.cc

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 81abc712c32ecba7ecc79b27b8e6c013bdb13f50..8844ce86424e185fb086e9977063ec9affc097df 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -27,12 +27,12 @@ using protocol::MouseEvent;
ClientSession::ClientSession(
EventHandler* event_handler,
- protocol::ConnectionToClient* connection,
+ scoped_ptr<protocol::ConnectionToClient> connection,
protocol::HostEventStub* host_event_stub,
Capturer* capturer)
: event_handler_(event_handler),
- connection_(connection),
- client_jid_(connection->session()->jid()),
+ connection_(connection.Pass()),
+ client_jid_(connection_->session()->jid()),
host_event_stub_(host_event_stub),
capturer_(capturer),
authenticated_(false),
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698