Index: net/http/http_cache_transaction.cc |
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc |
index 286a526a3edb2fa39e7101e10429cf3c15b7920a..0bacb2f62b32b548f5c65a372b6ff2817b8e0029 100644 |
--- a/net/http/http_cache_transaction.cc |
+++ b/net/http/http_cache_transaction.cc |
@@ -329,15 +329,16 @@ HttpCache::Transaction::Transaction( |
read_offset_(0), |
effective_load_flags_(0), |
write_len_(0), |
- weak_factory_(this), |
- io_callback_(base::Bind(&Transaction::OnIOComplete, |
- weak_factory_.GetWeakPtr())), |
transaction_pattern_(PATTERN_UNDEFINED), |
total_received_bytes_(0), |
- websocket_handshake_stream_base_create_helper_(NULL) { |
+ websocket_handshake_stream_base_create_helper_(NULL), |
+ weak_factory_(this) { |
COMPILE_ASSERT(HttpCache::Transaction::kNumValidationHeaders == |
arraysize(kValidationHeaders), |
Invalid_number_of_validation_headers); |
+ |
+ io_callback_ = base::Bind(&Transaction::OnIOComplete, |
+ weak_factory_.GetWeakPtr()); |
} |
HttpCache::Transaction::~Transaction() { |