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

Unified Diff: components/metrics/proto/system_profile.proto

Issue 2605553002: Add EffectiveConnectionType enum to the system profile proto (Closed)
Patch Set: Rebased, ryansturm comments, fix failing chromeos test Created 3 years, 12 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: components/metrics/proto/system_profile.proto
diff --git a/components/metrics/proto/system_profile.proto b/components/metrics/proto/system_profile.proto
index c116a0a1d1909830675f3e6b3442cae3924b56d0..7020e763aeace6048aa4a7953b4a03d4b0c762c2 100644
--- a/components/metrics/proto/system_profile.proto
+++ b/components/metrics/proto/system_profile.proto
@@ -366,6 +366,22 @@ message SystemProfileProto {
}
// Information of the wireless AP that device is connected to.
optional WifiAccessPoint access_point_info = 5;
+
+ // Derived from net::NetworkQualityEstimator::EffectiveConnectionType
+ // translated through NetworkMetricsProvider::GetConnectionType.
+ enum EffectiveConnectionType {
+ EFFECTIVE_CONNECTION_TYPE_UNKNOWN = 0;
+ EFFECTIVE_CONNECTION_TYPE_OFFLINE = 1;
+ EFFECTIVE_CONNECTION_TYPE_SLOW_2G = 2;
+ EFFECTIVE_CONNECTION_TYPE_2G = 3;
+ EFFECTIVE_CONNECTION_TYPE_3G = 4;
+ EFFECTIVE_CONNECTION_TYPE_4G = 5;
+ // Set to |EFFECTIVE_CONNECTION_TYPE_AMBIGUOUS| true if connection_type
+ // changed during the lifetime of the log.
+ EFFECTIVE_CONNECTION_TYPE_AMBIGUOUS = 6;
+ }
+ // The connection type according to net::NetworkQualityEstimator.
Alexei Svitkine (slow) 2017/01/03 17:48:48 Can you expand comment to explain differences with
tbansal1 2017/01/03 18:55:44 Done.
+ optional EffectiveConnectionType effective_connection_type = 6;
Alexei Svitkine (slow) 2017/01/03 17:48:49 Please send an internal CL with this change to the
tbansal1 2017/01/03 18:55:44 OK, I will do that. But, just to expand on my unde
asvitkine_google 2017/01/03 19:04:13 They are compatible, it's just that for metrics pr
}
optional Network network = 13;

Powered by Google App Engine
This is Rietveld 408576698