From f78c8ac5a02a6710684e903e27e092bbf307e8a8 Mon Sep 17 00:00:00 2001 From: hai007 Date: Fri, 3 Sep 2021 13:23:54 -0700 Subject: [PATCH] [Sharing][Analytics] 1. Adding acceptance status logging for LAUNCH_CONSENT event. 2. add new consent type for device contact consent. PiperOrigin-RevId: 394745696 --- proto/sharing_enums.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index 1189f78b..08ab3fe8 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -372,10 +372,23 @@ enum ActivityName { CONSENTS_ACTIVITY = 6; } +// The type of consent page user launches. enum ConsentType { CONSENT_TYPE_UNKNOWN = 0; + // launch Constellation consent page. CONSENT_TYPE_C11N = 1; + // launch device contact consent page. + CONSENT_TYPE_DEVICE_CONTACT = 2; +} + +enum ConsentAcceptanceStatus { + CONSENT_UNKNOWN_ACCEPT_STATUS = 0; + + CONSENT_ACCEPTED = 1; + CONSENT_DECLINED = 2; + // unable to enable consent. + CONSENT_UNABLE_TO_ENABLE = 3; } enum ApkSource {