Chromium Code Reviews
DescriptionUpdate WebAPKs even if the WebAPK start URL has no Web Manifest
This CL makes WebApkUpdateDataFetcher call back to WebApkUpdateManager on the
WebAPK's initial load regardless of whether the URL has an associated Web
Manifest.
If
- The WebAPK's start URL no longer has an associated Web Manifest or the
updated Web Manifest is not WebAPK-able
AND
- An update is needed because the WebAPK's Java code is out of date
Then a WebAPK update is requested using the data in the WebAPK's
AndroidManifest.xml
If the WebAPK's Java code is not out of date, WebApkUpdateDataFetcher is not
destroyed. The
WebApkUpdateDataFetcher will check whether the page has a WebAPK-able Web
Manifest on each subsequent page load till a WebAPK-able Web Manifest is found.
When a WebAPK-able Web Manifest is found, WebApkUpdateManager sends a WebAPK
update request if the new Web Manifest differs from the Web Manifest data
in AndroidManifest.xml
BUG=639536
TEST=WebApkDataFetcherTest.testNoWebManifest
Committed: https://crrev.com/f20ef410db15c47df68f101b8a105cbe98d0c437
Cr-Commit-Position: refs/heads/master@{#440302}
Patch Set 1 : pkotwicz@'s original patch. #Patch Set 2 : Nits. #
Total comments: 3
Patch Set 3 : Nits. #Messages
Total messages: 17 (10 generated)
|