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

Issue 2773353002: Make minimum PWA icon size the same accross all device densities

Created:
3 years, 9 months ago by pkotwicz
Modified:
3 years, 8 months ago
Reviewers:
dominickn, Xi Han
CC:
chromium-reviews, dominickn+watch_chromium.org, pkotwicz+watch_chromium.org, zpeng+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make minimum PWA icon size the same accross all device densities This CL: - Makes the minimum Web Manifest icon size for a web page to be considered a PWA 144px regardless of the device screen density. This makes Chrome's decision for whether a page is PWAable the same accross all devices. - Simplifies the logic in InstallableManager by removing the "minimum size" parameter of the InstallabeManager::IconParams tuple. BUG=697205

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

Total comments: 6

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

Patch Set 3 : Merge branch 'master' into min_size #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -182 lines) Patch
M chrome/android/java/res/values/dimens.xml View 1 chunk +2 lines, -1 line 1 comment Download
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 4 chunks +2 lines, -27 lines 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/banners/app_banner_manager_android.cc View 4 chunks +2 lines, -9 lines 0 comments Download
M chrome/browser/android/shortcut_helper.h View 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/android/shortcut_helper.cc View 6 chunks +9 lines, -27 lines 0 comments Download
M chrome/browser/android/shortcut_info.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/android/shortcut_info.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/android/webapk/webapk_update_data_fetcher.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 5 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_manager.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/installable/installable_manager.h View 3 chunks +1 line, -10 lines 0 comments Download
M chrome/browser/installable/installable_manager.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/installable/installable_manager_browsertest.cc View 8 chunks +8 lines, -58 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
pkotwicz
Xi, can you please take a look?
3 years, 8 months ago (2017-04-03 15:36:01 UTC) #11
Xi Han
This CL looks great! https://codereview.chromium.org/2773353002/diff/80001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc (right): https://codereview.chromium.org/2773353002/diff/80001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc#newcode210 chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc:210: return new AddToHomescreenDataFetcher(web_contents(), 144, 144, ...
3 years, 8 months ago (2017-04-03 18:24:58 UTC) #16
pkotwicz
Xi can you please take another look? https://codereview.chromium.org/2773353002/diff/80001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc (right): https://codereview.chromium.org/2773353002/diff/80001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc#newcode210 chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc:210: return new ...
3 years, 8 months ago (2017-04-05 04:29:07 UTC) #17
pkotwicz
https://codereview.chromium.org/2773353002/diff/80001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc File chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc (right): https://codereview.chromium.org/2773353002/diff/80001/chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc#newcode210 chrome/browser/android/webapps/add_to_homescreen_data_fetcher_unittest.cc:210: return new AddToHomescreenDataFetcher(web_contents(), 144, 144, 24, Done for real ...
3 years, 8 months ago (2017-04-05 14:59:34 UTC) #19
Xi Han
lgtm https://codereview.chromium.org/2773353002/diff/80001/chrome/browser/installable/installable_manager.cc File chrome/browser/installable/installable_manager.cc (right): https://codereview.chromium.org/2773353002/diff/80001/chrome/browser/installable/installable_manager.cc#newcode440 chrome/browser/installable/installable_manager.cc:440: int minimum_icon_size_in_px = (icon_purpose == IconPurpose::BADGE) On 2017/04/05 ...
3 years, 8 months ago (2017-04-05 15:19:27 UTC) #20
pkotwicz
Dominick for OWNERS
3 years, 8 months ago (2017-04-05 15:23:35 UTC) #22
dominickn
This cleans up a lot of code, but I think it's against Android best practices ...
3 years, 8 months ago (2017-04-06 05:30:26 UTC) #23
pkotwicz
There's a push to make "Is this site WebAPK-able eligible" easier to understand. Having a ...
3 years, 8 months ago (2017-04-06 15:22:25 UTC) #24
dominickn
3 years, 8 months ago (2017-04-07 00:43:54 UTC) #25
I'm aware of this push, and I fully support it. However, it is a reality of
native development that you need to support multiple icon sizes to suit multiple
devices. Having a flat pixel-based cutoff is the wrong move going forward,
especially because launcher icons aren't fixed in size across different
densities.

My preferred solution is something like:

 * remove the 144px cutoff
 * use the minimum size passed into InstallableManager to do the manifest level
check (instead of 144)
 * have Lighthouse be able to check the icons for common devices and their
required densities.

Improving WebAPK eligibility predictability should be done through Lighthouse,
and then ensuring that any site that passes Lighthouse will pass the client
check.

Powered by Google App Engine
This is Rietveld 408576698