• Josh Nohle's avatar
    [Nearby] Add self to list of allowed contacts · 072b81e1
    Josh Nohle authored
    Always include the logged-in account in the list of contacts uploaded
    to the Nearby Share server. Also, mark this contact as "selected".
    
    This automatically enables sharing with other devices logged in with
    the same account. This self-sharing works in all- or selected-contacts
    visibility modes. Previously, to enable self-sharing, a user would need
    to manually add their own account to their list of contacts at
    contacts.google.com, for instance.
    
    Verified fix with manual testing.
    
    Fixed: 1138679
    Change-Id: Ib3a2137257e4d4c56a43011d747811f522d9ad40
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2487244
    Auto-Submit: Josh Nohle <nohle@chromium.org>
    Commit-Queue: James Vecore <vecore@google.com>
    Reviewed-by: default avatarJames Vecore <vecore@google.com>
    Cr-Commit-Position: refs/heads/master@{#818943}
    072b81e1
nearby_sharing_service_impl.cc 119 KB