[Nearby] Add GetShareType to Attachment.
Moves the logic for determining the ShareType into the *Attachment classes. This cleans up some static casts and also allows this logic to be reused when generating the preview for the receive dialog page, coming in a subsequent CL. To avoid a dependency cycle I've moved the ShareType mojo struct definition into its own build target, which required importing new mojo gen files in a number of places. Fixed: 1144942 Change-Id: I7fe151470c9067a918363152d2e0520a08dc0298 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2582523 Commit-Queue: Michael Hansen <hansenmichael@google.com> Reviewed-by:Alex Gough <ajgo@chromium.org> Reviewed-by:
Kyle Horimoto <khorimoto@chromium.org> Reviewed-by:
James Vecore <vecore@google.com> Cr-Commit-Position: refs/heads/master@{#836953}
Showing
Please register or sign in to comment