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

Unified Diff: remoting/protocol/connection_to_host.cc

Issue 8116021: Switch remoting/protocol to new callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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
« no previous file with comments | « remoting/protocol/connection_to_client_unittest.cc ('k') | remoting/protocol/fake_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_host.cc
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index e2fe74a442d950949eaae96801a2f804fe8fdeb7..fd5463c6589bf39fb6e8568cdaf8010304f75bf5 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -140,7 +140,8 @@ void ConnectionToHost::OnSessionManagerInitialized() {
protocol::GenerateSupportAuthToken(local_jid_, access_code_);
session_.reset(session_manager_->Connect(
host_jid_, host_public_key_, client_token, candidate_config,
- NewCallback(this, &ConnectionToHost::OnSessionStateChange)));
+ base::Bind(&ConnectionToHost::OnSessionStateChange,
+ base::Unretained(this))));
// Set the shared-secret for securing SSL channels.
session_->set_shared_secret(access_code_);
« no previous file with comments | « remoting/protocol/connection_to_client_unittest.cc ('k') | remoting/protocol/fake_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698