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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp

Issue 2941713002: NetInfo: Return HTTP layer metrics instead of transport layer (Closed)
Patch Set: ps Created 3 years, 6 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: third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp
diff --git a/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp b/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp
index baf8c9e805fd21b4be012e0f8e2a20ed42e934ce..c56e36a45229935f16d85f96a7cfccbef01c1c11 100644
--- a/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp
+++ b/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp
@@ -175,8 +175,7 @@ void NetworkStateNotifier::SetNetworkQualityInfoOverride(
override_.on_line_initialized = true;
override_.connection_initialized = true;
override_.effective_type = effective_type;
- override_.transport_rtt =
- base::TimeDelta::FromMilliseconds(transport_rtt_msec);
+ override_.http_rtt = base::TimeDelta::FromMilliseconds(transport_rtt_msec);
override_.downlink_throughput_mbps = base::nullopt;
if (downlink_throughput_mbps >= 0)
override_.downlink_throughput_mbps = downlink_throughput_mbps;

Powered by Google App Engine
This is Rietveld 408576698