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

Issue 2050933002: Upstream: Add additional checks before creating a WebAPK after clicking "Add to Homescreen" (Closed)

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

Description

Upstream: Add additional checks before creating a WebAPK after clicking "Add to Homescreen" This CL makes "Add to Homescreen" from the app banner and from the app menu create a WebAPK if the following conditions are met: - Chrome is run with the --enable-webapk command line flag - active tab is controlled by a service worker - web manifest has the following non-empty fields: - name - short name - start_url - display field in web manifest is either "fullscreen" or "standalone" Additionally, this CL: - Moves AppBannerDataFetcher::IsManifestValidForWebApp() to webapp_manifest_validator.cc because the function is used by both app_banner_data_fetcher.cc and add_to_homescreen_data_fetcher.cc - Moves the computation of whether a web page is "web app capable" from ShortcutHelper.java to app_banner_data_fetcher.cc and add_to_homescreen_data_fetcher.cc - the same place that the computation of whether a web page is "WebAPK capable" is made. BUG=609122

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Merge branch 'create_webapk_requirements_enum_class' into create_webapk_requirements2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -252 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 1 3 chunks +13 lines, -17 lines 0 comments Download
M chrome/browser/android/banners/app_banner_data_fetcher_android.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/android/banners/app_banner_data_fetcher_android.cc View 1 5 chunks +19 lines, -1 line 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.h View 1 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate_android.cc View 1 5 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/android/shortcut_helper.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/shortcut_info.h View 1 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/android/shortcut_info.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h View 1 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 1 4 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_data_fetcher.h View 1 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/banners/app_banner_data_fetcher.cc View 1 5 chunks +9 lines, -73 lines 0 comments Download
D chrome/browser/banners/app_banner_data_fetcher_unittest.cc View 1 chunk +0 lines, -148 lines 0 comments Download
M chrome/browser/banners/app_banner_debug_log.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_debug_log.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/banners/webapp_manifest_validator.h View 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/banners/webapp_manifest_validator.cc View 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/banners/webapp_manifest_validator_unittest.cc View 1 1 chunk +150 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (10 generated)
pkotwicz
dominickn@ can you please take a look? This CL upstreams code in the WebAPK experimental ...
4 years, 6 months ago (2016-06-09 01:39:39 UTC) #10
pkotwicz
dominickn@ can you please take a look? This CL upstreams code in the WebAPK experimental ...
4 years, 6 months ago (2016-06-09 01:39:42 UTC) #11
dominickn
On 2016/06/09 01:39:42, pkotwicz wrote: > dominickn@ can you please take a look? > > ...
4 years, 6 months ago (2016-06-09 03:34:33 UTC) #13
pkotwicz
dominickn@ can you please take a look? This CL depends on https://codereview.chromium.org/2046423003/
4 years, 5 months ago (2016-07-05 02:10:13 UTC) #14
dominickn
On 2016/07/05 02:10:13, pkotwicz wrote: > dominickn@ can you please take a look? This CL ...
4 years, 5 months ago (2016-07-05 02:43:37 UTC) #15
pkotwicz
dominickn@ when do you expect the substantial changes to be (mostly) completed. In two weeks?
4 years, 5 months ago (2016-07-06 01:38:56 UTC) #16
pkotwicz
dominickn@ when do you expect the substantial changes to be (mostly) completed. In two weeks? ...
4 years, 5 months ago (2016-07-06 01:39:34 UTC) #17
dominickn
On 2016/07/06 01:39:34, pkotwicz wrote: > dominickn@ when do you expect the substantial changes to ...
4 years, 5 months ago (2016-07-06 01:43:07 UTC) #18
pkotwicz
Awesome!
4 years, 5 months ago (2016-07-06 02:44:59 UTC) #19
pkotwicz
4 years, 4 months ago (2016-08-17 02:35:45 UTC) #20
Abandoning this CL. This CL will be replaced with
https://codereview.chromium.org/2244223002/

Powered by Google App Engine
This is Rietveld 408576698