• Hugo Benichi's avatar
    arc: net: More simple default network tracking · 3e9a1d8e
    Hugo Benichi authored
    This patch changes how arc_net_host_impl tracks shill's default network
    by directly asking NetworkStateHandler when sending NetworkConfiguration
    objects over mojo instead of tracking default network changed
    notifications.
    
    In addition, an ActiveNetworksChanged notification is sent from Chrome
    to ARC when a change in the default network occurs and there is more
    than one active networks. This allows ARC to observe when shill changes
    the relative priorities of active networks while no other network
    property changes and to update Android network scores accordingly.
    
    BUG=b:143666023
    BUG=b:138351476
    TEST=Deployed Chrome and ARC P on atlas, verified with Android
    NetGrapher and adb shell dumpsys wifi that changing the default network
    with flimflam/test/reorder-services.sh results in consistent active
    network event notifications to ARC P.
    
    Change-Id: I5b38aa58fa61613d7d61419ff6d8a7ca05f646a3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1890519Reviewed-by: default avatarYusuke Sato <yusukes@chromium.org>
    Commit-Queue: Hugo Benichi <hugobenichi@google.com>
    Cr-Commit-Position: refs/heads/master@{#712846}
    3e9a1d8e
arc_net_host_impl.h 6.61 KB