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

Issue 2244223002: Determine whether to show "Add to Homescreen" dialog or WebAPK infobar (Closed)

Created:
4 years, 4 months ago by pkotwicz
Modified:
4 years, 3 months ago
Reviewers:
dominickn, Xi Han
CC:
chromium-reviews, dominickn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Determine whether to show "Add to Homescreen" dialog or WebAPK infobar This CL: - Introduces a new class, AddToHomescreenProcess, which manages the add-to-homescreen process. AddToHomescreenProcess is largely copied from AddToHomescreenDialogHelper - The CL adds logic to AddToHomescreenProcess to determine whether to show the add-WebAPK-to-homescreen infobar instead of the add-to-homescreen dialog. - Changes the entry point for adding a page to the homescreen from AddToHomescreenDialog#show() to AddToHomescreenProcess#start() BUG=627250, 606430, 635933

Patch Set 1 : Merge branch 'master' into webapk_dialog_detector #

Total comments: 3

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

Total comments: 3

Patch Set 3 : Merge branch 'webapk_dialog_detector00' into webapk_dialog_detector #

Patch Set 4 : Merge branch 'webapk_dialog_detector00' into webapk_dialog_detector #

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

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -307 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenDialog.java View 1 2 3 chunks +73 lines, -66 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenDialogHelper.java View 1 2 1 chunk +0 lines, -92 lines 0 comments Download
A + chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenManager.java View 1 2 2 chunks +51 lines, -44 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/AddToHomescreenDialogTest.java View 1 2 4 chunks +26 lines, -12 lines 0 comments Download
A + chrome/android/javatests/src/org/chromium/chrome/browser/webapps/AddToHomescreenManagerTest.java View 1 2 5 chunks +45 lines, -22 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
A + chrome/browser/android/webapps/add_to_homescreen_manager.h View 1 2 3 4 4 chunks +43 lines, -18 lines 1 comment Download
A + chrome/browser/android/webapps/add_to_homescreen_manager.cc View 1 2 3 4 5 chunks +95 lines, -40 lines 2 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
pkotwicz
Xi can you please take a look?
4 years, 4 months ago (2016-08-16 02:58:16 UTC) #8
pkotwicz
Just realized that InstallableManager::IsManifestValidForWebApp() checks whether the Web Manifest contains an icon which is too ...
4 years, 4 months ago (2016-08-16 03:24:39 UTC) #9
dominickn
On 2016/08/16 03:24:39, pkotwicz wrote: > Just realized that InstallableManager::IsManifestValidForWebApp() checks whether > the Web ...
4 years, 4 months ago (2016-08-16 03:27:07 UTC) #10
pkotwicz
I discussed with Dominick offline. I filed a bug at http://crbug.com/638247 to figure out whether ...
4 years, 4 months ago (2016-08-16 15:46:37 UTC) #11
pkotwicz
As an update, I am putting this CL on ice. We might want to display ...
4 years, 4 months ago (2016-08-17 02:34:23 UTC) #12
pkotwicz
Xi can you please take a look? I pinged Sam and he said that security ...
4 years, 4 months ago (2016-08-17 23:52:34 UTC) #13
pkotwicz
Xi Ping!
4 years, 4 months ago (2016-08-19 00:51:48 UTC) #14
Xi Han
Sorry for the late reply. Mostly nits. https://codereview.chromium.org/2244223002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenProcess.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenProcess.java (right): https://codereview.chromium.org/2244223002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenProcess.java#newcode20 chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenProcess.java:20: public interface ...
4 years, 4 months ago (2016-08-19 14:11:06 UTC) #15
pkotwicz
Xi can you please take another look?
4 years, 4 months ago (2016-08-20 00:16:29 UTC) #16
Xi Han
lgtm
4 years, 4 months ago (2016-08-22 12:24:52 UTC) #17
pkotwicz
Dominick, can you please take a look?
4 years, 4 months ago (2016-08-22 14:10:51 UTC) #19
dominickn
On 2016/08/22 14:10:51, pkotwicz wrote: > Dominick, can you please take a look? FYI: am ...
4 years, 4 months ago (2016-08-22 14:37:18 UTC) #20
dominickn
Very preliminary comments, plus a question. Is this *renaming* add to homescreen dialog helper? At ...
4 years, 4 months ago (2016-08-22 18:09:17 UTC) #21
pkotwicz
Dominick which of the interfaces added in this CL do you think are unnecessary? The ...
4 years, 4 months ago (2016-08-22 19:37:13 UTC) #22
pkotwicz
https://codereview.chromium.org/2244223002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenProcess.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenProcess.java (right): https://codereview.chromium.org/2244223002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenProcess.java#newcode17 chrome/android/java/src/org/chromium/chrome/browser/webapps/AddToHomescreenProcess.java:17: public class AddToHomescreenProcess implements AddToHomescreenDelegate { Ok, I can ...
4 years, 4 months ago (2016-08-22 19:37:40 UTC) #23
dominickn
On 2016/08/22 19:37:13, pkotwicz wrote: > Dominick which of the interfaces added in this CL ...
4 years, 4 months ago (2016-08-24 04:20:57 UTC) #24
pkotwicz
Dominick can you please take another look? - This CL now depends on the refactor ...
4 years, 4 months ago (2016-08-24 22:16:34 UTC) #25
pkotwicz
Dominick Ping!
4 years, 3 months ago (2016-08-26 19:20:34 UTC) #26
dominickn
On 2016/08/26 19:20:34, pkotwicz wrote: > Dominick Ping! Sorry, currently in transit back to Sydney. ...
4 years, 3 months ago (2016-08-26 22:27:51 UTC) #27
dominickn
This is looking better now. One more major design question. https://codereview.chromium.org/2244223002/diff/140001/chrome/browser/android/webapps/add_to_homescreen_manager.cc File chrome/browser/android/webapps/add_to_homescreen_manager.cc (right): https://codereview.chromium.org/2244223002/diff/140001/chrome/browser/android/webapps/add_to_homescreen_manager.cc#newcode100 ...
4 years, 3 months ago (2016-08-29 00:13:37 UTC) #28
pkotwicz
4 years, 3 months ago (2016-09-09 23:43:26 UTC) #29
Abandoning this CL because it landed as part of
https://codereview.chromium.org/2292133003/

Powered by Google App Engine
This is Rietveld 408576698