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

Issue 1961313002: Cache web app data for home screen sites declaring "display": "fullscreen" in their manifest. (Closed)

Created:
4 years, 7 months ago by dominickn
Modified:
4 years, 7 months ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache web app data for home screen sites declaring "display": "fullscreen" in their manifest. This CL stores the display mode specified by web apps in the launch intent and the corresponding WebappDataStorage. Currently, sites with "display": "fullscreen" in their manifest do not have their web app data cached, meaning they do not behave like a native app when launched from home screen. Additionally, the requirement for sites to declare "display": "standalone" in order to open in the standalone web frame and have notification deep-linking behaviour is expanded to include "fullscreen" declarations. A future CL will allow sites declaring "display": "fullscreen" to launch into fullscreen mode from the home screen. BUG=581522 Committed: https://crrev.com/3f9ab13fcba673aa56307a9b495f821bec49160a Cr-Commit-Position: refs/heads/master@{#394981}

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 11

Patch Set 3 : Address comments #

Patch Set 4 : Rebase #

Total comments: 6

Patch Set 5 : Addressing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -38 lines) Patch
M chrome/android/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 1 2 7 chunks +12 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java View 5 chunks +10 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappInfo.java View 1 2 3 7 chunks +24 lines, -13 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/preferences/privacy/ClearBrowsingDataPreferencesTest.java View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappInfoTest.java View 1 2 3 4 6 chunks +9 lines, -7 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappModeTest.java View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappDataStorageTest.java View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebappRegistryTest.java View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/shortcut_helper.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/android/shortcut_info.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
dominickn
PTAL, thanks! @dfalcantara: the one thing that this CL doesn't yet do is actually launch ...
4 years, 7 months ago (2016-05-10 13:13:07 UTC) #4
gone
Are you calling the function needed to kick you into fullscreen? Only works in, FWIW. ...
4 years, 7 months ago (2016-05-10 17:31:49 UTC) #5
gone
Are you calling the function needed to kick you into fullscreen? Only works in KK, ...
4 years, 7 months ago (2016-05-10 17:31:55 UTC) #6
gone
https://codereview.chromium.org/1961313002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/1961313002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode99 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:99: } else if (!TextUtils.equals(mWebappInfo.id(), newWebappInfo.id())) { Probably need to ...
4 years, 7 months ago (2016-05-10 19:41:20 UTC) #7
dominickn
At this point, I'm just reimplementing chunks of FullscreenHtmlApiHandler to do the fullscreen transition. This ...
4 years, 7 months ago (2016-05-11 04:24:21 UTC) #8
mlamouri (slow - plz ping)
Looks good but I can't find where you actually make the activity go fullscreen. Did ...
4 years, 7 months ago (2016-05-11 10:18:57 UTC) #9
gone
You'd have to ask Ted for his input on the FullscreenHtmlApiHandlerLongName split. I think he ...
4 years, 7 months ago (2016-05-11 17:51:30 UTC) #10
dominickn
> Looks good but I can't find where you actually make the activity go fullscreen. ...
4 years, 7 months ago (2016-05-12 06:40:41 UTC) #11
mlamouri (slow - plz ping)
dominickn@, do you still need a review here? It l-g-t-m but unless there is a ...
4 years, 7 months ago (2016-05-18 10:39:46 UTC) #12
mlamouri (slow - plz ping)
On 2016/05/18 at 10:39:46, Mounir Lamouri wrote: > dominickn@, do you still need a review ...
4 years, 7 months ago (2016-05-18 10:40:01 UTC) #13
dominickn
On 2016/05/18 10:40:01, Mounir Lamouri wrote: > On 2016/05/18 at 10:39:46, Mounir Lamouri wrote: > ...
4 years, 7 months ago (2016-05-18 11:09:18 UTC) #14
mlamouri (slow - plz ping)
On 2016/05/18 at 11:09:18, dominickn wrote: > On 2016/05/18 10:40:01, Mounir Lamouri wrote: > > ...
4 years, 7 months ago (2016-05-18 11:15:30 UTC) #15
dominickn
PTAL - rebranded this CL as just enabling the storage of display modes (particularly whether ...
4 years, 7 months ago (2016-05-19 07:32:53 UTC) #19
mlamouri (slow - plz ping)
lgtm with comments applied. https://codereview.chromium.org/1961313002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/1961313002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode122 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:122: mWebappInfo.displayMode()); I would prefer us ...
4 years, 7 months ago (2016-05-19 12:56:23 UTC) #20
gone
lgtm % mounir's comments
4 years, 7 months ago (2016-05-19 17:28:38 UTC) #21
dominickn
Thanks! https://codereview.chromium.org/1961313002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java File chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java (right): https://codereview.chromium.org/1961313002/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java#newcode122 chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappActivity.java:122: mWebappInfo.displayMode()); On 2016/05/19 12:56:23, Mounir Lamouri wrote: > ...
4 years, 7 months ago (2016-05-19 23:28:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1961313002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1961313002/120001
4 years, 7 months ago (2016-05-20 01:21:07 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 7 months ago (2016-05-20 03:33:01 UTC) #27
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 03:34:20 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3f9ab13fcba673aa56307a9b495f821bec49160a
Cr-Commit-Position: refs/heads/master@{#394981}

Powered by Google App Engine
This is Rietveld 408576698