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

Issue 2430773002: Fix WebappDataStorage#updateDidLastWebApkUpdateRequestSucceed() corner cases (Closed)

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

Description

Fix WebappDataStorage#updateDidLastWebApkUpdateRequestSucceed() corner cases This CL fixes three corner cases: 1) This CL sets the "WebAPK update" as having succeeded if: - the previous WebAPK update failed AND - A WebAPK update is no longer needed Doing this is important because the is-webapk-update-needed check is done much more frequently if the "previous WebAPK update failed." 2) This CL ignores whether the "WebAPK update" has previously succeeded if there have been no update attempts. The goal is to wait at least WebApkUpdateManager#FULL_CHECK_UPDATE_INTERVAL since the WebAPK's first launch before checking for updates. 3) This CL sets the "WebAPK update" as having failed if Chrome is killed after the time that the WebAPK update is requested but before WebApkUpdateManager#onBuiltWebApk() is called. BUG=639536 TEST=WebApkManagerTest.* R=dominickn, mlamouri TBR=tedchoc (For new dependencies to chrome_junit_tests in BUILD.gn) Committed: https://crrev.com/62ed2afce28cc27f6acd19115a7715f41dcc5e8f Cr-Commit-Position: refs/heads/master@{#426868}

Patch Set 1 #

Total comments: 16

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

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

Total comments: 2

Patch Set 4 : Merge branch 'master' into update_fail00 #

Patch Set 5 : Merge branch 'master' into update_fail00 #

Patch Set 6 : Merge branch 'master' into update_fail00 #

Messages

Total messages: 30 (15 generated)
pkotwicz
Dominick, can you please take a look?
4 years, 2 months ago (2016-10-18 19:09:44 UTC) #2
dominickn
In the CL description, can you clarify that - the previous WebAPK update failed; AND ...
4 years, 2 months ago (2016-10-19 05:54:13 UTC) #3
pkotwicz
Dominick can you please take another look? https://codereview.chromium.org/2430773002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java (right): https://codereview.chromium.org/2430773002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java#newcode38 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java:38: private static ...
4 years, 2 months ago (2016-10-19 20:43:42 UTC) #6
dominickn
lgtm https://codereview.chromium.org/2430773002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java (right): https://codereview.chromium.org/2430773002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java#newcode187 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java:187: private static void trackUpdateSuccessInWebappDataStorage(String id, boolean success) { ...
4 years, 2 months ago (2016-10-19 21:38:44 UTC) #7
pkotwicz
https://codereview.chromium.org/2430773002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java (right): https://codereview.chromium.org/2430773002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java#newcode182 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java:182: WebappDataStorage storage, int shellApkVersion, boolean previousUpdateSucceeded) { I am ...
4 years, 2 months ago (2016-10-20 21:47:42 UTC) #8
pkotwicz
4 years, 2 months ago (2016-10-20 21:47:43 UTC) #9
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/2430773002/60001
4 years, 2 months ago (2016-10-20 22:03:47 UTC) #12
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/286376)
4 years, 2 months ago (2016-10-20 22:27:38 UTC) #14
pkotwicz
mlamouri@ for OWNERS rubberstamp for chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkActivity.java (dfalcantara@ is away)
4 years, 2 months ago (2016-10-21 00:27:26 UTC) #16
mlamouri (slow - plz ping)
stampy lgtm
4 years, 2 months ago (2016-10-21 10:19:22 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/2430773002/80001
4 years, 2 months ago (2016-10-21 14:08:55 UTC) #20
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/286849)
4 years, 2 months ago (2016-10-21 14:29:42 UTC) #22
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/2430773002/80001
4 years, 2 months ago (2016-10-21 18:24:14 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-21 19:54:37 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 20:00:08 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/62ed2afce28cc27f6acd19115a7715f41dcc5e8f
Cr-Commit-Position: refs/heads/master@{#426868}

Powered by Google App Engine
This is Rietveld 408576698