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

Unified Diff: chrome/common/metrics/proto/system_profile.proto

Issue 12086008: Add NetworkChangeNotifier::ConnectionType to SystemProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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: chrome/common/metrics/proto/system_profile.proto
diff --git a/chrome/common/metrics/proto/system_profile.proto b/chrome/common/metrics/proto/system_profile.proto
index 3b0fe4b9c7bb54a9e6112a6aa33bef3af4be92e0..346d13ed942148fae92f741a4b7aa2c27c11e5c9 100644
--- a/chrome/common/metrics/proto/system_profile.proto
+++ b/chrome/common/metrics/proto/system_profile.proto
@@ -11,7 +11,7 @@ option optimize_for = LITE_RUNTIME;
package metrics;
-// Next tag: 12
+// Next tag: 13
Ilya Sherman 2013/01/26 00:49:00 nit: Please bump this one further and use 13 for y
szym 2013/01/28 18:16:25 Done.
message SystemProfileProto {
// The time when the client was compiled/linked, in seconds since the epoch.
optional int64 build_timestamp = 1;
@@ -147,6 +147,24 @@ message SystemProfileProto {
}
optional Hardware hardware = 6;
+ // Information about the network connection.
+ message Network {
+ // Set to true if there was a network change during the lifetime of the log.
+ optional bool is_ambiguous = 1;
Ilya Sherman 2013/01/26 00:49:00 nit: Perhaps name this "connection_type_is_ambiguo
szym 2013/01/28 18:16:25 Good point. I wanted to have one such flag for all
+
+ // See net::NetworkChangeNotifier::ConnectionType.
Ilya Sherman 2013/01/26 00:49:00 nit: IMO it would be better to copy the short comm
szym 2013/01/28 18:16:25 That link in that other comment is out of date. Th
+ enum ConnectionType {
+ CONNECTION_UNKNOWN = 0;
+ CONNECTION_ETHERNET = 1;
+ CONNECTION_WIFI = 2;
+ CONNECTION_2G = 3;
+ CONNECTION_3G = 4;
+ CONNECTION_4G = 5;
+ }
+ optional ConnectionType connection_type = 2;
+ }
+ optional Network network = 12;
+
// Information on the Google Update install that is managing this client.
message GoogleUpdate {
// Whether the Google Update install is system-level or user-level.
« chrome/browser/metrics/metrics_log.cc ('K') | « chrome/browser/metrics/metrics_log.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698