Skip to content

Commit

Permalink
Fix mapping to visibility logging.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 686242524
  • Loading branch information
ftsui authored and copybara-github committed Oct 15, 2024
1 parent e9f2c76 commit 722c8a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion proto/sharing_enums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ enum Visibility {

CONTACTS_ONLY = 1;
EVERYONE = 2;
SELECTED_CONTACTS_ONLY = 3;
SELECTED_CONTACTS_ONLY = 3 [deprecated = true];
HIDDEN = 4;
SELF_SHARE = 5;
}
Expand Down
3 changes: 3 additions & 0 deletions sharing/analytics/analytics_recorder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ Visibility GetLoggerVisibility(DeviceVisibility visibility) {
return Visibility::EVERYONE;
case DeviceVisibility::DEVICE_VISIBILITY_SELF_SHARE:
return Visibility::SELF_SHARE;
case DeviceVisibility::DEVICE_VISIBILITY_HIDDEN:
return Visibility::HIDDEN;
case DeviceVisibility::DEVICE_VISIBILITY_UNSPECIFIED:
default:
return Visibility::UNKNOWN_VISIBILITY;
}
Expand Down

0 comments on commit 722c8a3

Please sign in to comment.