Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Issue 2594813002: Update WebAPKs even if the WebAPK start URL has no Web Manifest (Closed)

Created:
3 years, 12 months ago by Xi Han
Modified:
3 years, 12 months ago
Reviewers:
dominickn
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update 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)
Xi Han
Hi Dominick, I take over this CL from pkotwicz@ as well. Could you please take ...
3 years, 12 months ago (2016-12-20 20:53:23 UTC) #3
dominickn
https://codereview.chromium.org/2594813002/diff/20001/chrome/browser/android/webapk/webapk_update_data_fetcher.cc File chrome/browser/android/webapk/webapk_update_data_fetcher.cc (right): https://codereview.chromium.org/2594813002/diff/20001/chrome/browser/android/webapk/webapk_update_data_fetcher.cc#newcode145 chrome/browser/android/webapk/webapk_update_data_fetcher.cc:145: if (data.error_code != NO_ERROR_DETECTED || On 2016/12/20 20:53:23, Xi ...
3 years, 12 months ago (2016-12-21 02:14:32 UTC) #7
Xi Han
Hi Dominick, PTAL, thanks! https://codereview.chromium.org/2594813002/diff/20001/chrome/browser/android/webapk/webapk_update_data_fetcher.cc File chrome/browser/android/webapk/webapk_update_data_fetcher.cc (right): https://codereview.chromium.org/2594813002/diff/20001/chrome/browser/android/webapk/webapk_update_data_fetcher.cc#newcode145 chrome/browser/android/webapk/webapk_update_data_fetcher.cc:145: if (data.error_code != NO_ERROR_DETECTED || ...
3 years, 12 months ago (2016-12-21 22:25:11 UTC) #9
dominickn
lgtm, thanks!
3 years, 12 months ago (2016-12-21 22:53:22 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2594813002/60001
3 years, 12 months ago (2016-12-22 00:23:46 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:60001)
3 years, 12 months ago (2016-12-22 01:34:49 UTC) #15
commit-bot: I haz the power
3 years, 12 months ago (2016-12-22 01:39:32 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f20ef410db15c47df68f101b8a105cbe98d0c437
Cr-Commit-Position: refs/heads/master@{#440302}

Powered by Google App Engine
This is Rietveld 408576698