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

Issue 1997313002: Make favicon and manifest icon processing more consistent for add to homescreen. (Closed)

Created:
4 years, 7 months ago by dominickn
Modified:
4 years, 4 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

Make favicon and manifest icon processing more consistent for add to homescreen. Manifest icons are used as-provided for add to homescreen on Android, while favicons are processed to add rounded corners and padding. This leads to inconsistent icon sizing when a site uses a manifest to declare icons versus using <link rel="icon"> or favicons. This CL is a first step in addressing the inconsistency by ensuring both favicons and manifest icons are processed identically for add to homescreen. The corner rounding is removed completely, while the padding process is changed to only be applied on icons which have nontransparent (alpha != 0) pixels in all four of their corners from either source. This heuristic attempts to detect square icons with no existing padding, which is often how favicons are produced. If any transparent pixel in any corner is detected, no padding is applied. A future CL will make the icon selection heuristic consistent between favicons and manifest icons, which will complete the fix for this issue. BUG=612028 Committed: https://crrev.com/96548fc8973a2e1fa7616d2de7fca20cbe5c98b6 Cr-Commit-Position: refs/heads/master@{#411494}

Patch Set 1 #

Patch Set 2 : Rebase and remove corner rounding #

Patch Set 3 : Only pad icons when all four corners are nontransparent #

Patch Set 4 : Rebase #

Patch Set 5 : Better variable naming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -49 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 1 2 3 4 chunks +28 lines, -17 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h View 1 2 3 4 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc View 1 2 3 4 5 chunks +41 lines, -27 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 35 (21 generated)
dominickn
PTAL, thanks! I've manually verified that this change corrects the icon inconsistency issue in the ...
4 years, 7 months ago (2016-05-23 06:20:12 UTC) #4
gone
lgtm yay for path unification
4 years, 7 months ago (2016-05-23 19:55:15 UTC) #5
mlamouri (slow - plz ping)
Can you hold before landing this. The Manifest doesn't follow the favicon path for some ...
4 years, 7 months ago (2016-05-23 22:02:10 UTC) #7
dominickn
On 2016/05/23 22:02:10, Mounir Lamouri (slow) wrote: > Can you hold before landing this. The ...
4 years, 7 months ago (2016-05-23 22:09:16 UTC) #8
mlamouri (slow - plz ping)
On 2016/05/23 at 22:09:16, dominickn wrote: > On 2016/05/23 22:02:10, Mounir Lamouri (slow) wrote: > ...
4 years, 7 months ago (2016-05-23 22:11:22 UTC) #9
dominickn
PTAL thanks! This now removes the corner rounding entirely for both favicons and manifest icons ...
4 years, 5 months ago (2016-07-18 00:51:22 UTC) #12
mlamouri (slow - plz ping)
Left a comment on the bug.
4 years, 5 months ago (2016-07-18 09:50:09 UTC) #13
dominickn
PTAL, thanks!
4 years, 4 months ago (2016-08-10 09:29:50 UTC) #16
gone
Seems fine to me. Most of the changes seemed to be cleanups. lgtm
4 years, 4 months ago (2016-08-10 20:31:07 UTC) #18
dominickn
On 2016/08/10 20:31:07, dfalcantara wrote: > Seems fine to me. Most of the changes seemed ...
4 years, 4 months ago (2016-08-11 05:12:54 UTC) #25
mlamouri (slow - plz ping)
Sorry, I did not finish my round of review yesterday. lgtm
4 years, 4 months ago (2016-08-11 08:48:23 UTC) #28
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/1997313002/80001
4 years, 4 months ago (2016-08-12 00:48:50 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-12 00:52:04 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 00:55:23 UTC) #35
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/96548fc8973a2e1fa7616d2de7fca20cbe5c98b6
Cr-Commit-Position: refs/heads/master@{#411494}

Powered by Google App Engine
This is Rietveld 408576698