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

Unified Diff: remoting/host/chromoting_host.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
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index ab3478aa3f56333fd84190b3c792211577918f24..26871271e1c48ab090d44028134bd21188f38b06 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -261,10 +261,10 @@ void ChromotingHost::OnIncomingSession(
LOG(INFO) << "Client connected: " << session->jid();
// Create a client object.
- protocol::ConnectionToClient* connection =
- new protocol::ConnectionToClient(session);
+ scoped_ptr<protocol::ConnectionToClient> connection(
+ new protocol::ConnectionToClient(session));
ClientSession* client = new ClientSession(
- this, connection, desktop_environment_->event_executor(),
+ this, connection.Pass(), desktop_environment_->event_executor(),
desktop_environment_->capturer());
clients_.push_back(client);
}

Powered by Google App Engine
This is Rietveld 408576698