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

Issue 2634173002: Fall back to legacy add to homescreen behavior on non-GMS device or GMS isn't availabe. (Closed)

Created:
3 years, 11 months ago by Xi Han
Modified:
3 years, 11 months ago
Reviewers:
dominickn, pkotwicz
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

Fall back to legacy add to homescreen behavior on non-GMS device or GMS isn't availabe. In WebApkInstaller, we only checks whether the Google Play install delegate is aviable before calling Google Play's install API. If it is a non-GMS device, or user failed to connect to Google Play Service due to Play service is updating or service is disabled ect., the install would fail. In this CL we add an additional check of whether we can use Google Play Service sucessfully on the device. For all the failure cases, we will fall back to legacy A2HS even when the play_install flag is on. BUG=679798 Review-Url: https://codereview.chromium.org/2634173002 Cr-Commit-Position: refs/heads/master@{#444365} Committed: https://chromium.googlesource.com/chromium/src/+/b3c97c14c8f3918440ec8f6ff5f51d03e2284f7e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Nits. #

Total comments: 2

Patch Set 3 : Nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -22 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkInstaller.java View 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/webapk/webapk_installer_unittest.cc View 1 2 7 chunks +18 lines, -15 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Xi Han
Hi Peter, could you please take a look? Thanks!
3 years, 11 months ago (2017-01-16 19:25:47 UTC) #5
pkotwicz
LGTM. Thank you for fixing this bug! https://codereview.chromium.org/2634173002/diff/40001/chrome/browser/android/webapk/webapk_installer_unittest.cc File chrome/browser/android/webapk/webapk_installer_unittest.cc (right): https://codereview.chromium.org/2634173002/diff/40001/chrome/browser/android/webapk/webapk_installer_unittest.cc#newcode186 chrome/browser/android/webapk/webapk_installer_unittest.cc:186: // Whether ...
3 years, 11 months ago (2017-01-17 02:20:41 UTC) #6
Xi Han
Hi Dominick, could you please take a look? Thanks! https://codereview.chromium.org/2634173002/diff/40001/chrome/browser/android/webapk/webapk_installer_unittest.cc File chrome/browser/android/webapk/webapk_installer_unittest.cc (right): https://codereview.chromium.org/2634173002/diff/40001/chrome/browser/android/webapk/webapk_installer_unittest.cc#newcode186 chrome/browser/android/webapk/webapk_installer_unittest.cc:186: ...
3 years, 11 months ago (2017-01-17 14:36:07 UTC) #8
dominickn
lgtm % nit https://codereview.chromium.org/2634173002/diff/60001/chrome/browser/android/webapk/webapk_installer.h File chrome/browser/android/webapk/webapk_installer.h (right): https://codereview.chromium.org/2634173002/diff/60001/chrome/browser/android/webapk/webapk_installer.h#newcode127 chrome/browser/android/webapk/webapk_installer.h:127: // Returns whether Google Play Service ...
3 years, 11 months ago (2017-01-18 00:07:02 UTC) #13
Xi Han
https://codereview.chromium.org/2634173002/diff/60001/chrome/browser/android/webapk/webapk_installer.h File chrome/browser/android/webapk/webapk_installer.h (right): https://codereview.chromium.org/2634173002/diff/60001/chrome/browser/android/webapk/webapk_installer.h#newcode127 chrome/browser/android/webapk/webapk_installer.h:127: // Returns whether Google Play Service can be used ...
3 years, 11 months ago (2017-01-18 14:53:27 UTC) #14
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/2634173002/80001
3 years, 11 months ago (2017-01-18 14:53:51 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 15:30:45 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/b3c97c14c8f3918440ec8f6ff5f5...

Powered by Google App Engine
This is Rietveld 408576698