• Ryan Hansberry's avatar
    [Bluetooth] Fix Closure errors in bluetooth-internals. · 530f364a
    Ryan Hansberry authored
    Address closure issues caused by moving to more restrictive rules:
      * Tweaked how BluetoothAdapter 'info' was bubbled up to be non-null.
      * The code was previously shoving undeclared 'removed' and
        'connectionStatus' properties into the bluetooth.mojom.DeviceInfo
        struct. I moved this 'removed' property to a separate map (it's a
        hacky property only used for the bluetooth-internals page, so it
        makes no sense to actually add to the struct) and completely tore
        out the notion of a 'connectionStatus' from being attached to a
        DeviceInfo since it was actually not used (!).
    
    Tested by building webui_closure_compile with this CL based on top of
    crrev.com/c/2006413, and by manually testing
    chrome://bluetooth-internals to verify no regressions were introduced.
    
    Fixed: 1047809
    Change-Id: Id5abfec261602e67e9f9783a5621bec7bd97cc65
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2038078
    Commit-Queue: Ryan Hansberry <hansberry@chromium.org>
    Reviewed-by: default avatarTommy Li <tommycli@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#738658}
    530f364a
device_table.js 6.67 KB