[OfflinePages] Restart immediate background loading upon network connection |
|||||
Issue descriptionCurrently the RequestCoordinator will not start immediate processing or will not continue processing if there is no network connection. It can be quite delay to resume processing via the GcmNetworkManager so while chrome is still resident, use an in-memory network observer to detect when connection returns and start processing again (at least for immediate mode processing).
,
Dec 5 2016
,
Dec 6 2016
,
Dec 6 2016
Your change meets the bar and is auto-approved for M56 (branch: 2924)
,
Dec 6 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/3649e1f0d1448d159c37fb3209a6814dc79569a3 commit 3649e1f0d1448d159c37fb3209a6814dc79569a3 Author: Pete Williamson <petewil@chromium.org> Date: Tue Dec 06 18:50:39 2016 [OfflinePages] Restarts immediate processing if stopped due to no net Adds a ConnectionNotifier helper class to be able to learn when we get connected and uses it in the Coordinator to try immediate start when we get connected after stopping because we had no connection. This is a memory-only network observer so only in effect if chrome stays resident in memory. Otherwise, we still have the GcmNetworkManager scheduler as a fallback. BUG= 670119 Review-Url: https://codereview.chromium.org/2546433004 Cr-Commit-Position: refs/heads/master@{#436040} (cherry picked from commit 7103c6cef4c8ed86a090e605e9817d1852452dc2) Review URL: https://codereview.chromium.org/2556613003 . Cr-Commit-Position: refs/branch-heads/2924@{#358} Cr-Branched-From: 3a87aecc31cd1ffe751dd72c04e5a96a1fc8108a-refs/heads/master@{#433059} [modify] https://crrev.com/3649e1f0d1448d159c37fb3209a6814dc79569a3/components/offline_pages/background/BUILD.gn [add] https://crrev.com/3649e1f0d1448d159c37fb3209a6814dc79569a3/components/offline_pages/background/connection_notifier.cc [add] https://crrev.com/3649e1f0d1448d159c37fb3209a6814dc79569a3/components/offline_pages/background/connection_notifier.h [modify] https://crrev.com/3649e1f0d1448d159c37fb3209a6814dc79569a3/components/offline_pages/background/request_coordinator.cc [modify] https://crrev.com/3649e1f0d1448d159c37fb3209a6814dc79569a3/components/offline_pages/background/request_coordinator.h [modify] https://crrev.com/3649e1f0d1448d159c37fb3209a6814dc79569a3/components/offline_pages/background/request_coordinator_unittest.cc |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by bugdroid1@chromium.org
, Dec 2 2016