• Xing Liu's avatar
    Background download: Network/battery status listener implementation on Mac. · 3ea8bbe5
    Xing Liu authored
    net::NetworkChangeNotifier and base::PowerObserver are not hooked to
    correct platform code on Mac, thus make background download service not
    working correctly.
    
    This CL provides default implementation for device status monitoring on
    Mac that always treat the device connected to internet and power source.
    
    This is mostly a temporary solution before platform code is implemented
    correctly.
    
    Also pull out BatteryStatusListener and NetworkStatusListener to a
    separate file.
    
    Bug: 825878
    Change-Id: If34d8eb0cbe5d0575920c4251eda5e5161695adf
    Reviewed-on: https://chromium-review.googlesource.com/1178689Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
    Commit-Queue: Xing Liu <xingliu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#584345}
    3ea8bbe5
BUILD.gn 4.9 KB