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

Unified Diff: remoting/protocol/connection_to_client.cc

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix win and mac Created 9 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
Index: remoting/protocol/connection_to_client.cc
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc
index 4f8a46b2b2177f787b5a6b5006e39a8726f69ea7..9c9285660d6870c56a9e5982cdbe4668d0de28e4 100644
--- a/remoting/protocol/connection_to_client.cc
+++ b/remoting/protocol/connection_to_client.cc
@@ -58,8 +58,7 @@ void ConnectionToClient::Disconnect() {
// This method can be called from main thread so perform threading switching.
if (!message_loop_->BelongsToCurrentThread()) {
message_loop_->PostTask(
- FROM_HERE,
- NewRunnableMethod(this, &ConnectionToClient::Disconnect));
+ FROM_HERE, base::Bind(&ConnectionToClient::Disconnect, this));
return;
}

Powered by Google App Engine
This is Rietveld 408576698