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

Unified Diff: net/nqe/network_qualities_prefs_manager.cc

Issue 2369673004: Wire NQE Prefs to Profile (Closed)
Patch Set: ps Created 4 years, 2 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/nqe/network_qualities_prefs_manager.cc
diff --git a/net/nqe/network_qualities_prefs_manager.cc b/net/nqe/network_qualities_prefs_manager.cc
index bddfa06e821b20277db45eddc5ca5a590cbb7066..c801f2b17544ee7fe20cfa999da5433a92ab03af 100644
--- a/net/nqe/network_qualities_prefs_manager.cc
+++ b/net/nqe/network_qualities_prefs_manager.cc
@@ -58,6 +58,7 @@ void NetworkQualitiesPrefsManager::OnChangeInCachedNetworkQuality(
void NetworkQualitiesPrefsManager::ShutdownOnPrefThread() {
DCHECK(pref_task_runner_->RunsTasksOnCurrentThread());
+ pref_weak_ptr_factory_.InvalidateWeakPtrs();
pref_delegate_.reset();
}

Powered by Google App Engine
This is Rietveld 408576698