|
|
Chromium Code Reviews
Description[WebAPKs]: Run WebApkInstaller::OnInstallFinished() for Google Play updates
This CL:
- fixes bug where WebApkInstaller#updateAsyncFromGooglePlay() was not
calling nativeOnInstallFinished()
- passes callback to GooglePlayWebApkInstallDelegate#installAsync() so that
callback is called only after update completes
Review-Url: https://codereview.chromium.org/2740003002
Cr-Commit-Position: refs/heads/master@{#456589}
Committed: https://chromium.googlesource.com/chromium/src/+/8c81f4b49feeac64da3f1ff1ff2dd58053420247
Patch Set 1 #
Total comments: 2
Patch Set 2 : Merge branch 'start00' into start0 #Patch Set 3 : Merge branch 'start00' into start0 #
Total comments: 1
Patch Set 4 : Merge branch 'start00' into start0 #Messages
Total messages: 24 (10 generated)
pkotwicz@chromium.org changed reviewers: + hanxi@chromium.org
Xi, can you please take a look? I'll try to be more careful in the future when I am writing code
Sorry for the late reply, I thought I had sent out my comments. https://codereview.chromium.org/2740003002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java (right): https://codereview.chromium.org/2740003002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java:163: notify(true); I think you shouldn't call notify(true) here immediately. installAsync() will call notify(), right?
https://codereview.chromium.org/2740003002/diff/1/chrome/android/java/src/org... File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java (right): https://codereview.chromium.org/2740003002/diff/1/chrome/android/java/src/org... chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java:163: notify(true); On 2017/03/10 13:48:32, Xi Han wrote: > I think you shouldn't call notify(true) here immediately. installAsync() will > call notify(), right? As discussed offline, we could keep it as it is now in this CL. Please file or link to a bug to pass in the proper callback for Google Play update case:)
Xi can you please take another look? I have changed the CL to pass a callback to the GooglePlayWebApkInstallDelegate
LGTM!
pkotwicz@chromium.org changed reviewers: + dominickn@chromium.org
Dominick, can you please take a look?
https://codereview.chromium.org/2740003002/diff/40001/chrome/android/java/src... File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java (right): https://codereview.chromium.org/2740003002/diff/40001/chrome/android/java/src... chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java:125: } Looks like I need re-rebase this CL
Rebased. Dominick, ready for your review
lgtm, but can you attach a bug number please.
On 2017/03/13 22:50:50, dominickn wrote: > lgtm, but can you attach a bug number please. Also the title doesn't seem to fit with the code. How about "Ensure Play WebAPK updates pass a callback to the install delegate"
Description was changed from ========== [WebAPKs]: Run WebApkInstaller::UpdateAsync() for Google Play updates This CL fixes bug where WebApkInstaller#updateAsyncFromGooglePlay() was not calling nativeOnInstallFinished() ========== to ========== [WebAPKs]: Run WebApkInstaller::OnInstallFinished() for Google Play updates This CL fixes bug where WebApkInstaller#updateAsyncFromGooglePlay() was not calling nativeOnInstallFinished() ==========
Description was changed from ========== [WebAPKs]: Run WebApkInstaller::OnInstallFinished() for Google Play updates This CL fixes bug where WebApkInstaller#updateAsyncFromGooglePlay() was not calling nativeOnInstallFinished() ========== to ========== [WebAPKs]: Run WebApkInstaller::OnInstallFinished() for Google Play updates This CL: - fixes bug where WebApkInstaller#updateAsyncFromGooglePlay() was not calling nativeOnInstallFinished() - passes callback to GooglePlayWebApkInstallDelegate#installAsync() so that callback is called only after update completes ==========
The CQ bit was checked by pkotwicz@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from hanxi@chromium.org Link to the patchset: https://codereview.chromium.org/2740003002/#ps60001 (title: "Merge branch 'start00' into start0")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_comp...) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
The CQ bit was checked by pkotwicz@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1489455816347300,
"parent_rev": "b46b2120bd9c8b260513015717a9a09792f71714", "commit_rev":
"8c81f4b49feeac64da3f1ff1ff2dd58053420247"}
Message was sent while issue was closed.
Description was changed from ========== [WebAPKs]: Run WebApkInstaller::OnInstallFinished() for Google Play updates This CL: - fixes bug where WebApkInstaller#updateAsyncFromGooglePlay() was not calling nativeOnInstallFinished() - passes callback to GooglePlayWebApkInstallDelegate#installAsync() so that callback is called only after update completes ========== to ========== [WebAPKs]: Run WebApkInstaller::OnInstallFinished() for Google Play updates This CL: - fixes bug where WebApkInstaller#updateAsyncFromGooglePlay() was not calling nativeOnInstallFinished() - passes callback to GooglePlayWebApkInstallDelegate#installAsync() so that callback is called only after update completes Review-Url: https://codereview.chromium.org/2740003002 Cr-Commit-Position: refs/heads/master@{#456589} Committed: https://chromium.googlesource.com/chromium/src/+/8c81f4b49feeac64da3f1ff1ff2d... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/8c81f4b49feeac64da3f1ff1ff2d... |
