Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc |
index e71bd294eb5a366193a0365693f4141b8f1f260f..3a4ab52c5e58f59dedee3e213bff307d6013fa1b 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc |
@@ -40,6 +40,7 @@ DataReductionProxyStatisticsPrefs::~DataReductionProxyStatisticsPrefs() { |
void DataReductionProxyStatisticsPrefs::ShutdownOnUIThread() { |
DCHECK(thread_checker_.CalledOnValidThread()); |
pref_change_registrar_->RemoveAll(); |
+ weak_factory_.InvalidateWeakPtrs(); |
} |
void DataReductionProxyStatisticsPrefs::Init() { |