[BackgroundSync] Trigger network notifications for more events

There is concern that we're missing some network connectivitiy events on
versions >= N due to doze mode. So this CL updates the network on Android via
ConnectivityManager.NetworkCallback events as well.

Bug: 794638
Change-Id: I4c9547653d881a430eb5a696804d778182b6c346
Reviewed-on: https://chromium-review.googlesource.com/896809
Reviewed-by: Peter Beverloo <peter@chromium.org>
Commit-Queue: Josh Karlin <jkarlin@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#535006}(cherry picked from commit 9ba2fee6d7c54b256369fc56e64dc6434207a51e)
Reviewed-on: https://chromium-review.googlesource.com/929481
Reviewed-by: Josh Karlin <jkarlin@chromium.org>
Cr-Commit-Position: refs/branch-heads/3325@{#537}
Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
1 file changed