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

Unified Diff: remoting/jingle_glue/jingle_info_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/jingle_glue/javascript_iq_request.cc ('k') | remoting/jingle_glue/mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_info_request.cc
diff --git a/remoting/jingle_glue/jingle_info_request.cc b/remoting/jingle_glue/jingle_info_request.cc
index 2c3a39c0bd005d03fee2548f7aa6647985edc20a..888c7682058ec23791a8913b299ea72a9b18ee4d 100644
--- a/remoting/jingle_glue/jingle_info_request.cc
+++ b/remoting/jingle_glue/jingle_info_request.cc
@@ -4,6 +4,7 @@
#include "remoting/jingle_glue/jingle_info_request.h"
+#include "base/bind.h"
#include "base/task.h"
#include "base/message_loop.h"
#include "base/stl_util.h"
@@ -22,7 +23,8 @@ JingleInfoRequest::JingleInfoRequest(IqRequest* request,
HostResolverFactory* host_resolver_factory)
: host_resolver_factory_(host_resolver_factory),
request_(request) {
- request_->set_callback(NewCallback(this, &JingleInfoRequest::OnResponse));
+ request_->set_callback(base::Bind(&JingleInfoRequest::OnResponse,
+ base::Unretained(this)));
}
JingleInfoRequest::~JingleInfoRequest() {
« no previous file with comments | « remoting/jingle_glue/javascript_iq_request.cc ('k') | remoting/jingle_glue/mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698