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

Unified Diff: remoting/host/chromoting_host.cc

Issue 5740005: Pass RefCounted objects as scoped_refptr to NewRunnableMethod. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index e58623daf634c46b078d23ec55088b739cbfbfed..a06098c4ce6cd22a7e97da87b787d235ce776260 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -206,7 +206,7 @@ void ChromotingHost::OnConnectionOpened(ConnectionToClient* connection) {
context_->main_message_loop()->PostTask(
FROM_HERE,
NewRunnableMethod(this, &ChromotingHost::OnClientConnected,
- connection_.get()));
+ connection_));
}
void ChromotingHost::OnConnectionClosed(ConnectionToClient* connection) {
@@ -216,7 +216,7 @@ void ChromotingHost::OnConnectionClosed(ConnectionToClient* connection) {
context_->main_message_loop()->PostTask(
FROM_HERE,
NewRunnableMethod(this, &ChromotingHost::OnClientDisconnected,
- connection_.get()));
+ connection_));
}
void ChromotingHost::OnConnectionFailed(ConnectionToClient* connection) {
@@ -226,7 +226,7 @@ void ChromotingHost::OnConnectionFailed(ConnectionToClient* connection) {
context_->main_message_loop()->PostTask(
FROM_HERE,
NewRunnableMethod(this, &ChromotingHost::OnClientDisconnected,
- connection_.get()));
+ connection_));
}
////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698