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

Unified Diff: remoting/protocol/jingle_chromotocol_server.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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/protocol/jingle_chromotocol_server.cc
diff --git a/remoting/protocol/jingle_chromotocol_server.cc b/remoting/protocol/jingle_chromotocol_server.cc
index 796c63b48dfe18eeb9f2d1934f716dc737c0694c..2300243875bffd1a10187cb82aeed8865893a11a 100644
--- a/remoting/protocol/jingle_chromotocol_server.cc
+++ b/remoting/protocol/jingle_chromotocol_server.cc
@@ -223,8 +223,8 @@ scoped_refptr<ChromotocolConnection> JingleChromotocolServer::Connect(
CandidateChromotocolConfig* chromotocol_config,
ChromotocolConnection::StateChangeCallback* state_change_callback) {
// Can be called from any thread.
- scoped_refptr<JingleChromotocolConnection> connection =
- new JingleChromotocolConnection(this);
+ scoped_refptr<JingleChromotocolConnection> connection(
+ new JingleChromotocolConnection(this));
connection->set_candidate_config(chromotocol_config);
message_loop()->PostTask(
FROM_HERE, NewRunnableMethod(this, &JingleChromotocolServer::DoConnect,
« no previous file with comments | « remoting/protocol/jingle_chromotocol_connection_unittest.cc ('k') | remoting/protocol/message_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698