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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2863973003: Expose RTT and downlink bandwidth using experimental Javascript API (Closed)
Patch Set: kinuko comments Created 3 years, 7 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: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 58feb85237d71ba997c7c981929950156e7ce052..752d32075da253ea0f041da241ed12e0e1ca6fe0 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -2122,12 +2122,12 @@ void RenderThreadImpl::OnNetworkConnectionChanged(
}
void RenderThreadImpl::OnNetworkQualityChanged(
- double http_rtt_msec,
- double transport_rtt_msec,
+ base::TimeDelta http_rtt,
+ base::TimeDelta transport_rtt,
double downlink_throughput_kbps) {
UMA_HISTOGRAM_BOOLEAN("NQE.RenderThreadNotified", true);
- // TODO(tbansal): https://crbug.com/719108. Notify WebNetworkStateNotifier of
- // the change in the network quality.
+ WebNetworkStateNotifier::SetNetworkQuality(http_rtt, transport_rtt,
+ downlink_throughput_kbps);
}
void RenderThreadImpl::SetWebKitSharedTimersSuspended(bool suspend) {

Powered by Google App Engine
This is Rietveld 408576698