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

Unified Diff: net/http/http_proxy_client_socket_pool.cc

Issue 506523002: net : Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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 | « net/http/http_proxy_client_socket_pool.h ('k') | net/http/http_server_properties_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_proxy_client_socket_pool.cc
diff --git a/net/http/http_proxy_client_socket_pool.cc b/net/http/http_proxy_client_socket_pool.cc
index 829a5e78314968bca7b6acce7b9f6fd3c7215482..6c2084ed980268912b68bc378d07047b67583c59 100644
--- a/net/http/http_proxy_client_socket_pool.cc
+++ b/net/http/http_proxy_client_socket_pool.cc
@@ -87,15 +87,15 @@ HttpProxyConnectJob::HttpProxyConnectJob(
NetLog* net_log)
: ConnectJob(group_name, timeout_duration, priority, delegate,
BoundNetLog::Make(net_log, NetLog::SOURCE_CONNECT_JOB)),
- weak_ptr_factory_(this),
params_(params),
transport_pool_(transport_pool),
ssl_pool_(ssl_pool),
resolver_(host_resolver),
- callback_(base::Bind(&HttpProxyConnectJob::OnIOComplete,
- weak_ptr_factory_.GetWeakPtr())),
using_spdy_(false),
- protocol_negotiated_(kProtoUnknown) {
+ protocol_negotiated_(kProtoUnknown),
+ weak_ptr_factory_(this) {
+ callback_= base::Bind(&HttpProxyConnectJob::OnIOComplete,
+ weak_ptr_factory_.GetWeakPtr());
}
HttpProxyConnectJob::~HttpProxyConnectJob() {}
« no previous file with comments | « net/http/http_proxy_client_socket_pool.h ('k') | net/http/http_server_properties_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698