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

Unified Diff: net/test/spawned_test_server/spawner_communicator.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
Index: net/test/spawned_test_server/spawner_communicator.h
diff --git a/net/test/spawned_test_server/spawner_communicator.h b/net/test/spawned_test_server/spawner_communicator.h
index bf426e635024718675e226d552f996a98fdfa687..b657ac37b8d2de34808bcb5941e55422117ab1b1 100644
--- a/net/test/spawned_test_server/spawner_communicator.h
+++ b/net/test/spawned_test_server/spawner_communicator.h
@@ -130,10 +130,6 @@ class SpawnerCommunicator : public net::URLRequest::Delegate {
// The next ID to use for |cur_request_| (monotonically increasing).
int next_id_;
- // Factory for creating the time-out task. This takes care of revoking
- // outstanding tasks when |this| is deleted.
- base::WeakPtrFactory<SpawnerCommunicator> weak_factory_;
-
// Request context used by |cur_request_|.
scoped_ptr<URLRequestContext> context_;
@@ -143,6 +139,10 @@ class SpawnerCommunicator : public net::URLRequest::Delegate {
// Only gets/sets |is_running_| on user's thread to avoid race-condition.
bool is_running_;
+ // Factory for creating the time-out task. This takes care of revoking
+ // outstanding tasks when |this| is deleted.
+ base::WeakPtrFactory<SpawnerCommunicator> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(SpawnerCommunicator);
};
« no previous file with comments | « net/test/embedded_test_server/embedded_test_server.h ('k') | net/test/spawned_test_server/spawner_communicator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698