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

Unified Diff: remoting/host/heartbeat_sender.cc

Issue 7744041: Use new callbacks in the IqRequest interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/heartbeat_sender.cc
diff --git a/remoting/host/heartbeat_sender.cc b/remoting/host/heartbeat_sender.cc
index af739b0930e5be1acd21584d71d6f248db07cf7b..589eb312eb5f98947f3d0331201111d824b74e5c 100644
--- a/remoting/host/heartbeat_sender.cc
+++ b/remoting/host/heartbeat_sender.cc
@@ -4,6 +4,7 @@
#include "remoting/host/heartbeat_sender.h"
+#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop_proxy.h"
#include "base/string_number_conversions.h"
@@ -72,7 +73,8 @@ void HeartbeatSender::OnSignallingConnected(SignalStrategy* signal_strategy,
full_jid_ = full_jid;
request_.reset(signal_strategy->CreateIqRequest());
- request_->set_callback(NewCallback(this, &HeartbeatSender::ProcessResponse));
+ request_->set_callback(base::Bind(&HeartbeatSender::ProcessResponse,
+ base::Unretained(this)));
DoSendStanza();
timer_.Start(base::TimeDelta::FromMilliseconds(interval_ms_), this,
« no previous file with comments | « no previous file | remoting/host/register_support_host_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698