• Josh Nohle's avatar
    [Nearby] Do not disable WebRTC if attachments exceed 25MB · c01cf1b9
    Josh Nohle authored
    Currently, if the sum of attachment sizes exceeds 25MB, WebRTC will be
    disabled regardless of the user's data-usage setting. Because we already
    provide the user an option to only use unmetered connections, we make
    changes in this CL to respect the user's setting regardless of
    attachment size.
    
    We also add additional logging of supported mediums.
    
    Manually tested that the correct mediums are sent to Nearby Connections;
    however, there is an outstanding bug in Nearby Connections (b/176432167)
    that supported medium choices are not respected.
    
    Fixed: 1164688
    Change-Id: I749ab72aaf48feac7e799561f1ad1bbb961f5e31
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2619319
    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@{#842092}
    c01cf1b9
constants.h 2.23 KB