Make NTP PrefetchedPageTracker to load Offline Pages database on demand.
The PrefetchedPagesTracker is used to see if suggestions have corresponding offline pages, in which case they may be given longer lifetime before expiration. The check is done after remote provider does a "Fetch", which brings new suggestions and starts suggestions integration. The whole thing is asynchronous and can trigger load of offline pages database right after the fetch rather than at the moment of creation, as it does it currently. Loading Offline Pages database on Chrome startup becomes too expensive as number of offline pages grows so it needs to become more on demand. TBR: vitaliii@chromium.org Bug: 793109 Change-Id: I919c5c777e8363c194c49cce1fd86076b87ead4d Reviewed-on: https://chromium-review.googlesource.com/906103Reviewed-by:Filip Gorski <fgorski@chromium.org> Reviewed-by:
Patrick Noland <pnoland@google.com> Commit-Queue: Dmitry Titov <dimich@chromium.org> Cr-Commit-Position: refs/heads/master@{#537476}
Showing
Please register or sign in to comment