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

Unified Diff: net/nqe/cached_network_quality.cc

Issue 2369673004: Wire NQE Prefs to Profile (Closed)
Patch Set: Addressed bengr comments 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/cached_network_quality.cc
diff --git a/net/nqe/cached_network_quality.cc b/net/nqe/cached_network_quality.cc
index 8b65c34c6a2e7bffc134d78c995cd00cf607418b..bcdd885128cd2d3af49b7d072d120d176d2b6470 100644
--- a/net/nqe/cached_network_quality.cc
+++ b/net/nqe/cached_network_quality.cc
@@ -14,6 +14,12 @@ CachedNetworkQuality::CachedNetworkQuality()
: effective_connection_type_(EFFECTIVE_CONNECTION_TYPE_UNKNOWN) {}
CachedNetworkQuality::CachedNetworkQuality(
+ EffectiveConnectionType effective_connection_type)
+ : CachedNetworkQuality(base::TimeTicks::Now(),
+ NetworkQuality(),
+ effective_connection_type) {}
+
+CachedNetworkQuality::CachedNetworkQuality(
base::TimeTicks last_update_time,
const NetworkQuality& network_quality,
EffectiveConnectionType effective_connection_type)

Powered by Google App Engine
This is Rietveld 408576698