Index: components/gcm_driver/gcm_client_impl.cc |
diff --git a/components/gcm_driver/gcm_client_impl.cc b/components/gcm_driver/gcm_client_impl.cc |
index a60df6915aa6b0a0284de79c377f55420c2bcb75..6560342bdfe827c4c94117763d34ac0e50557db9 100644 |
--- a/components/gcm_driver/gcm_client_impl.cc |
+++ b/components/gcm_driver/gcm_client_impl.cc |
@@ -502,6 +502,7 @@ void GCMClientImpl::UpdateRegistrationCallback(bool success) { |
} |
void GCMClientImpl::Stop() { |
+ weak_ptr_factory_.InvalidateWeakPtrs(); |
device_checkin_info_.Reset(); |
connection_factory_.reset(); |
mcs_client_.reset(); |