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

Unified Diff: net/socket/socket_test_util.cc

Issue 8915024: Retry 114494 - Remove BindStateHolder and have Bind() return a Callback<> object directly." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « net/http/http_proxy_client_socket.cc ('k') | net/socket/web_socket_server_socket.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/socket/socket_test_util.cc
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc
index 9e437aab417b5c22defefc4560a5842250413afe..656df9bf9be3addf932fcd287fa78d5ba3bc51c8 100644
--- a/net/socket/socket_test_util.cc
+++ b/net/socket/socket_test_util.cc
@@ -1478,8 +1478,7 @@ int MockTransportClientSocketPool::RequestSocket(
AddressList(), net_log.net_log(), net::NetLog::Source());
CompletionCallback cb;
if (callback) {
- cb = base::Bind(&OldCompletionCallback::Run<int>,
- base::Unretained(callback));
+ cb = base::Bind(&OldCompletionCallbackAdapter, callback);
}
MockConnectJob* job = new MockConnectJob(socket, handle, cb);
job_list_.push_back(job);
@@ -1488,7 +1487,7 @@ int MockTransportClientSocketPool::RequestSocket(
}
void MockTransportClientSocketPool::CancelRequest(const std::string& group_name,
- ClientSocketHandle* handle) {
+ ClientSocketHandle* handle) {
std::vector<MockConnectJob*>::iterator i;
for (i = job_list_.begin(); i != job_list_.end(); ++i) {
if ((*i)->CancelHandle(handle)) {
« no previous file with comments | « net/http/http_proxy_client_socket.cc ('k') | net/socket/web_socket_server_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698