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

Issue 2460253002: Update WebAPKs even if the WebAPK start URL has no Web Manifest part 2/3 (Closed)

Created:
4 years, 1 month ago by pkotwicz
Modified:
4 years ago
Reviewers:
dominickn, gone
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 part 2/3 The class name ManifestUpgradeDetector does not make sense in the context of the new ManifestUpgradeDetector#Callback. The new callback can be called up to twice: - Once after the initial page load. (Regardless of whether the page uses the correct Web Manifest) - Once after a page which uses the correct Web Manifest has finished loading. If a Web Developer removes the Web Manifest from their site, the second call is never done. This CL: - moves the check for "whether the fetched Web Manifest requires a WebAPK upgrade" into WebApkUpdateManager. - merges the manifest fetching parts of ManifestUpgradeDetector and ManifestUpgradeDetectorFetcher into a new class WebApkUpdateDataFetcher BUG=639536 Committed: https://crrev.com/b1e143c78604fdd43daa19e5123da514509ee091 Cr-Commit-Position: refs/heads/master@{#437641}

Patch Set 1 : Merge branch 'update_fail_refactor01' into update_fail_refactor0 #

Total comments: 1

Patch Set 2 : Merge branch 'master' into update_fail_refactor0 #

Total comments: 4

Patch Set 3 : Merge branch 'master' into update_fail_refactor0 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+546 lines, -1176 lines) Patch
M chrome/android/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetector.java View 1 1 chunk +0 lines, -163 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcher.java View 1 1 chunk +0 lines, -124 lines 0 comments Download
A + chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java View 1 3 chunks +32 lines, -27 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java View 1 11 chunks +79 lines, -26 lines 0 comments Download
M chrome/android/java_sources.gni View 1 4 chunks +3 lines, -5 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorFetcherTest.java View 1 1 chunk +0 lines, -164 lines 0 comments Download
D chrome/android/javatests/src/org/chromium/chrome/browser/webapps/ManifestUpgradeDetectorTest.java View 1 1 chunk +0 lines, -190 lines 0 comments Download
A + chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcherTest.java View 1 5 chunks +24 lines, -16 lines 0 comments Download
A + chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java View 1 6 chunks +53 lines, -44 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java View 1 2 16 chunks +316 lines, -80 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
D chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.h View 1 1 chunk +0 lines, -95 lines 0 comments Download
D chrome/browser/android/webapk/manifest_upgrade_detector_fetcher.cc View 1 1 chunk +0 lines, -203 lines 0 comments Download
A + chrome/browser/android/webapk/webapk_update_data_fetcher.h View 1 4 chunks +14 lines, -14 lines 0 comments Download
A + chrome/browser/android/webapk/webapk_update_data_fetcher.cc View 1 10 chunks +19 lines, -19 lines 0 comments Download

Messages

Total messages: 31 (18 generated)
pkotwicz
Dominick, can you please take a look? This CL depends on https://codereview.chromium.org/2459023002/
4 years, 1 month ago (2016-10-31 03:58:02 UTC) #5
dominickn
I'll wait till we've fully sorted out crrev.com/2459023002 to do the full review, but for ...
4 years, 1 month ago (2016-11-01 03:37:16 UTC) #6
pkotwicz
Dominick, can you please take another look? I have rebased this CL. I have also ...
4 years ago (2016-12-08 01:53:07 UTC) #11
dominickn
Looks pretty good. Just a couple of clarifying questions. https://codereview.chromium.org/2460253002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java (right): https://codereview.chromium.org/2460253002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java#newcode69 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java:69: ...
4 years ago (2016-12-08 05:41:49 UTC) #15
pkotwicz
Dominick, can you please take another look? https://codereview.chromium.org/2460253002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java (right): https://codereview.chromium.org/2460253002/diff/140001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java#newcode69 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateDataFetcher.java:69: mTab.addObserver(this); Things ...
4 years ago (2016-12-08 15:13:39 UTC) #16
dominickn
lgtm. Thanks for clarifying.
4 years ago (2016-12-09 01:58:43 UTC) #17
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/2460253002/160001
4 years ago (2016-12-09 15:50:24 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/322579)
4 years ago (2016-12-09 15:59:20 UTC) #21
pkotwicz
dfalcantara@ for changes to chrome_jni_registrar.cc
4 years ago (2016-12-09 16:23:39 UTC) #23
gone
OWNERs lgtm
4 years ago (2016-12-09 19:24:16 UTC) #24
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/2460253002/160001
4 years ago (2016-12-09 19:48:15 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:160001)
4 years ago (2016-12-09 20:53:18 UTC) #29
commit-bot: I haz the power
4 years ago (2016-12-12 14:40:25 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b1e143c78604fdd43daa19e5123da514509ee091
Cr-Commit-Position: refs/heads/master@{#437641}

Powered by Google App Engine
This is Rietveld 408576698