• Josh Nohle's avatar
    [Nearby] Download contacts/certificates when actively using Nearby Share · 18947daf
    Josh Nohle authored
    Sync down local-device, contact, and certificate data from the Nearby
    server when the sending or receiving flow starts, making our best effort
    at freshness. We do not wait for these calls to finish. The periodic
    server requests will typically be sufficient, but we don't want the user
    to be blocked for hours waiting for a periodic sync.
    
    Manually verified that the download is performed once during a sending
    flow and once during a receiving flow.
    
    Fixed: b/168834197
    Change-Id: Id35e097ce09cfe7c5a85f079074943788d2359b1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505009
    Auto-Submit: Josh Nohle <nohle@chromium.org>
    Reviewed-by: default avatarJames Vecore <vecore@google.com>
    Commit-Queue: Josh Nohle <nohle@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#821779}
    18947daf
nearby_sharing_service_impl.cc 122 KB