From a429cfd03a8cd5b61b85ccbb13903372a1e364c8 Mon Sep 17 00:00:00 2001 From: Francis Tsui Date: Thu, 17 Apr 2025 13:20:55 -0700 Subject: [PATCH] internal changes PiperOrigin-RevId: 748788743 --- proto/sharing_enums.proto | 1 + sharing/analytics/analytics_recorder.cc | 2 ++ sharing/attachment.h | 1 + 3 files changed, 4 insertions(+) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index 9b7605af..49134482 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -836,6 +836,7 @@ enum AttachmentSourceType { ATTACHMENT_SOURCE_SELECT_FILES_BUTTON = 3; ATTACHMENT_SOURCE_PASTE = 4; ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON = 5; + ATTACHMENT_SOURCE_SHARE_ACTIVATION = 6; } // The action to interact with preferences. diff --git a/sharing/analytics/analytics_recorder.cc b/sharing/analytics/analytics_recorder.cc index a7ce3469..0b8b0359 100644 --- a/sharing/analytics/analytics_recorder.cc +++ b/sharing/analytics/analytics_recorder.cc @@ -124,6 +124,8 @@ AttachmentSourceType GetLoggerAttachmentSourceType( return AttachmentSourceType::ATTACHMENT_SOURCE_PASTE; case Attachment::SourceType::kSelectFoldersButton: return AttachmentSourceType::ATTACHMENT_SOURCE_SELECT_FOLDERS_BUTTON; + case Attachment::SourceType::kShareActivation: + return AttachmentSourceType::ATTACHMENT_SOURCE_SHARE_ACTIVATION; default: return AttachmentSourceType::ATTACHMENT_SOURCE_UNKNOWN; } diff --git a/sharing/attachment.h b/sharing/attachment.h index ec2e2a49..77800c5b 100644 --- a/sharing/attachment.h +++ b/sharing/attachment.h @@ -43,6 +43,7 @@ class Attachment { kSelectFilesButton, kPaste, kSelectFoldersButton, + kShareActivation, kMaxValue = kSelectFoldersButton };