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

Unified Diff: remoting/protocol/protocol_test_client.cc

Issue 4291001: Convert implicit scoped_refptr constructor calls to explicit ones, part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/build
Patch Set: comments Created 10 years, 1 month 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/protocol/message_decoder.cc ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/protocol_test_client.cc
diff --git a/remoting/protocol/protocol_test_client.cc b/remoting/protocol/protocol_test_client.cc
index d61c0b5fd99edf34b58c90a3b8f4391710ca4b8d..b28e96de2f827bb4876b3d7586d6b485160178f4 100644
--- a/remoting/protocol/protocol_test_client.cc
+++ b/remoting/protocol/protocol_test_client.cc
@@ -288,7 +288,7 @@ void ProtocolTestClient::OnStateChange(
host_jid_, CandidateChromotocolConfig::CreateDefault(),
NewCallback(connection,
&ProtocolTestConnection::OnStateChange)));
- connections_.push_back(connection);
+ connections_.push_back(make_scoped_refptr(connection));
}
} else if (state == JingleClient::CLOSED) {
std::cerr << "Connection closed" << std::endl;
@@ -309,7 +309,7 @@ void ProtocolTestClient::OnNewChromotocolConnection(
NewCallback(test_connection, &ProtocolTestConnection::OnStateChange));
test_connection->Init(connection);
AutoLock auto_lock(connections_lock_);
- connections_.push_back(test_connection);
+ connections_.push_back(make_scoped_refptr(test_connection));
}
void ProtocolTestClient::OnFinishedClosing() {
« no previous file with comments | « remoting/protocol/message_decoder.cc ('k') | webkit/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698