Background download: Network/battery status listener implementation on Mac.
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:Min Qin <qinmin@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#584345}
Showing
Please register or sign in to comment