Index: sync/notifier/sync_invalidation_listener.cc |
diff --git a/sync/notifier/sync_invalidation_listener.cc b/sync/notifier/sync_invalidation_listener.cc |
index 71be3ecad69b21f6ab265f1e88c3349995483a14..763cc876bf0e954ca1e8a28c6f78c707215ce4ea 100644 |
--- a/sync/notifier/sync_invalidation_listener.cc |
+++ b/sync/notifier/sync_invalidation_listener.cc |
@@ -33,13 +33,13 @@ SyncInvalidationListener::Delegate::~Delegate() {} |
SyncInvalidationListener::SyncInvalidationListener( |
base::TickClock* tick_clock, |
scoped_ptr<notifier::PushClient> push_client) |
- : weak_ptr_factory_(this), |
- ack_tracker_(tick_clock, this), |
+ : ack_tracker_(tick_clock, this), |
push_client_(push_client.get()), |
sync_system_resources_(push_client.Pass(), this), |
delegate_(NULL), |
ticl_state_(DEFAULT_INVALIDATION_ERROR), |
- push_client_state_(DEFAULT_INVALIDATION_ERROR) { |
+ push_client_state_(DEFAULT_INVALIDATION_ERROR), |
+ weak_ptr_factory_(this) { |
DCHECK(CalledOnValidThread()); |
push_client_->AddObserver(this); |
} |