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

Unified Diff: remoting/host/register_support_host_request.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 | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/register_support_host_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/register_support_host_request.cc
diff --git a/remoting/host/register_support_host_request.cc b/remoting/host/register_support_host_request.cc
index 00045f06f6d2ce978c74eaaf0416c2ec0c5467c9..3c47daba239a0001c85632c04b9597be433fa078 100644
--- a/remoting/host/register_support_host_request.cc
+++ b/remoting/host/register_support_host_request.cc
@@ -4,6 +4,7 @@
#include "remoting/host/register_support_host_request.h"
+#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/string_number_conversions.h"
@@ -59,8 +60,8 @@ void RegisterSupportHostRequest::OnSignallingConnected(
message_loop_ = MessageLoop::current();
request_.reset(signal_strategy->CreateIqRequest());
- request_->set_callback(NewCallback(
- this, &RegisterSupportHostRequest::ProcessResponse));
+ request_->set_callback(base::Bind(
+ &RegisterSupportHostRequest::ProcessResponse, base::Unretained(this)));
request_->SendIq(buzz::STR_SET, kChromotingBotJid,
CreateRegistrationRequest(jid));
« no previous file with comments | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/register_support_host_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698