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

Unified Diff: net/socket/client_socket_handle.cc

Issue 8990001: base::Bind: Convert most of net/http. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang. Created 9 years 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
Index: net/socket/client_socket_handle.cc
diff --git a/net/socket/client_socket_handle.cc b/net/socket/client_socket_handle.cc
index 6d3e4e9a90caf3d98a899d8870e2b528b8914a25..fbe9d800f7577734844f4b44a6b84424f2f86cae 100644
--- a/net/socket/client_socket_handle.cc
+++ b/net/socket/client_socket_handle.cc
@@ -4,6 +4,8 @@
#include "net/socket/client_socket_handle.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/compiler_specific.h"
#include "base/metrics/histogram.h"
#include "base/logging.h"
@@ -18,8 +20,9 @@ ClientSocketHandle::ClientSocketHandle()
pool_(NULL),
layered_pool_(NULL),
is_reused_(false),
- ALLOW_THIS_IN_INITIALIZER_LIST(
- callback_(this, &ClientSocketHandle::OnIOComplete)),
+ ALLOW_THIS_IN_INITIALIZER_LIST(callback_(
+ base::Bind(&ClientSocketHandle::OnIOComplete,
+ base::Unretained(this)))),
is_ssl_error_(false) {}
ClientSocketHandle::~ClientSocketHandle() {

Powered by Google App Engine
This is Rietveld 408576698