Chrome sync: Put WeakPtrFactory members at the end
BUG=303818
[email protected], [email protected]
[email protected]
Review URL: https://codereview.chromium.org/26594002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227944 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/sync/notifier/non_blocking_invalidator.cc b/sync/notifier/non_blocking_invalidator.cc
index d4c602b..ca89132 100644
--- a/sync/notifier/non_blocking_invalidator.cc
+++ b/sync/notifier/non_blocking_invalidator.cc
@@ -141,13 +141,12 @@
const WeakHandle<InvalidationStateTracker>&
invalidation_state_tracker,
const std::string& client_info)
- : weak_ptr_factory_(this),
- core_(
- new Core(MakeWeakHandle(weak_ptr_factory_.GetWeakPtr()))),
- parent_task_runner_(
- base::ThreadTaskRunnerHandle::Get()),
- network_task_runner_(notifier_options.request_context_getter->
- GetNetworkTaskRunner()) {
+ : parent_task_runner_(base::ThreadTaskRunnerHandle::Get()),
+ network_task_runner_(
+ notifier_options.request_context_getter->GetNetworkTaskRunner()),
+ weak_ptr_factory_(this) {
+ core_ = new Core(MakeWeakHandle(weak_ptr_factory_.GetWeakPtr()));
+
if (!network_task_runner_->PostTask(
FROM_HERE,
base::Bind(