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

Unified Diff: net/http/http_transaction_test_util.h

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_server_properties_manager.h ('k') | net/http/http_transaction_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_transaction_test_util.h
diff --git a/net/http/http_transaction_test_util.h b/net/http/http_transaction_test_util.h
index 0803ef59ddcc6c15eb7f7fe32c4324d20ed13a46..b8663c6e14382b7dd440a77d36c8dc52a89b3efb 100644
--- a/net/http/http_transaction_test_util.h
+++ b/net/http/http_transaction_test_util.h
@@ -237,7 +237,6 @@ class MockNetworkTransaction
void CallbackLater(const net::CompletionCallback& callback, int result);
void RunCallback(const net::CompletionCallback& callback, int result);
- base::WeakPtrFactory<MockNetworkTransaction> weak_factory_;
const net::HttpRequestInfo* request_;
net::HttpResponseInfo response_;
std::string data_;
@@ -252,6 +251,9 @@ class MockNetworkTransaction
// connection. Requires Start() be passed a BoundNetLog with a real NetLog to
// be initialized.
unsigned int socket_log_id_;
+
+ base::WeakPtrFactory<MockNetworkTransaction> weak_factory_;
+
};
class MockNetworkLayer : public net::HttpTransactionFactory,
« no previous file with comments | « net/http/http_server_properties_manager.h ('k') | net/http/http_transaction_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698