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

Unified Diff: net/ftp/ftp_network_transaction.cc

Issue 8549004: base::Bind: Convert HostResolver::Resolve. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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
« no previous file with comments | « net/dns/async_host_resolver_unittest.cc ('k') | net/http/http_auth_handler_negotiate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_network_transaction.cc
diff --git a/net/ftp/ftp_network_transaction.cc b/net/ftp/ftp_network_transaction.cc
index 24ab0f97687373866d500a761f6478550a26de8f..f5ef45e235611ad5ea59b88aaf0c0c4612d447c0 100644
--- a/net/ftp/ftp_network_transaction.cc
+++ b/net/ftp/ftp_network_transaction.cc
@@ -4,6 +4,8 @@
#include "net/ftp/ftp_network_transaction.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/compiler_specific.h"
#include "base/metrics/histogram.h"
#include "base/string_number_conversions.h"
@@ -627,7 +629,10 @@ int FtpNetworkTransaction::DoCtrlResolveHost() {
HostResolver::RequestInfo info(HostPortPair::FromURL(request_->url));
// No known referrer.
- return resolver_.Resolve(info, &addresses_, &io_callback_, net_log_);
+ return resolver_.Resolve(
+ info, &addresses_,
+ base::Bind(&FtpNetworkTransaction::OnIOComplete, base::Unretained(this)),
+ net_log_);
}
int FtpNetworkTransaction::DoCtrlResolveHostComplete(int result) {
« no previous file with comments | « net/dns/async_host_resolver_unittest.cc ('k') | net/http/http_auth_handler_negotiate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698