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

Unified Diff: net/nqe/network_quality_estimator.h

Issue 2674393002: Read NQE prefs to network quality store under all cases (Closed)
Patch Set: Created 3 years, 10 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_quality_estimator.h
diff --git a/net/nqe/network_quality_estimator.h b/net/nqe/network_quality_estimator.h
index e4a9d97471a3e487e4987df663d54f3375c8960f..72fc3cf6a74c937319b8f7d67c36754cc26da7d4 100644
--- a/net/nqe/network_quality_estimator.h
+++ b/net/nqe/network_quality_estimator.h
@@ -390,6 +390,8 @@ class NET_EXPORT NetworkQualityEstimator
UnknownEffectiveConnectionType);
FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
TypicalNetworkQualities);
+ FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
+ OnPrefsReadWithReadingDisabled);
// Value of round trip time observations is in base::TimeDelta.
typedef nqe::internal::Observation<base::TimeDelta> RttObservation;
@@ -753,6 +755,9 @@ class NET_EXPORT NetworkQualityEstimator
const bool forced_effective_connection_type_set_;
const EffectiveConnectionType forced_effective_connection_type_;
+ // Set to true if reading of the network quality prefs is enabled.
+ const bool persistent_cache_reading_enabled_;
+
base::ThreadChecker thread_checker_;
base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
« no previous file with comments | « chrome/browser/net/nqe/ui_network_quality_estimator_service_browsertest.cc ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698