diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index 8995f606..709295a7 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -32,7 +32,7 @@ option objc_class_prefix = "GNSHP"; // in NearbyClearcutLogger (for android, or clearcut_event_logger as the // equivalence for Windows) for all events (may exclude settings), and // session_id for a pair of events (start and end of a session). -// Next id: 71 +// Next id: 72 enum EventType { UNKNOWN_EVENT_TYPE = 0; @@ -306,6 +306,10 @@ enum EventType { // A QR code sharing session has started START_QR_CODE_SESSION = 70; + // A QR code URL has been opened in a web client/browser instead of in a + // native Quick Share app. + QR_CODE_OPENED_IN_WEB_CLIENT = 71; + // LINT.ThenChange(//depot/google3/location/nearby/proto/nearby_event_codes.proto:SharingEventCode) } diff --git a/sharing/proto/analytics/nearby_sharing_log.proto b/sharing/proto/analytics/nearby_sharing_log.proto index d332ba4a..cd34e042 100644 --- a/sharing/proto/analytics/nearby_sharing_log.proto +++ b/sharing/proto/analytics/nearby_sharing_log.proto @@ -31,7 +31,7 @@ option objc_class_prefix = "GNCP"; // Top-level log proto for all NearbySharing logging. // Each log contains a key (event_type), value (a verb-noun event) pair. -// Next Tag: 80 +// Next Tag: 81 // LINT.IfChange message SharingLog { /* collection_basis = { @@ -216,6 +216,8 @@ message SharingLog { optional StartQrCodeSession start_qr_code_session = 79; + optional QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80; + // Used only for Nearby Share Windows app now. message AppInfo { // e.g. "1.0.408" @@ -934,5 +936,19 @@ message SharingLog { // EventType: START_QR_CODE_SESSION message StartQrCodeSession {} + + // EventType: QR_CODE_OPENED_IN_WEB_CLIENT + message QrCodeOpenedInWebClient { + enum ClientPlatform { + UNKNOWN_CLIENT_PLATFORM = 0; + // Used when the client platform is not one of the types below + GENERIC = 1; + ANDROID = 2; + IOS = 3; + CHROME_OS = 4; + WINDOWS = 5; + } + optional ClientPlatform client_platform = 1; + } } // LINT.ThenChange(//depot/google3/logs/proto/location/nearby/nearby_client_log.proto)