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

Issue 2686623005: [Android Webapps]: Do not resize homescreen icon when not padding the icon (Closed)

Created:
3 years, 10 months ago by pkotwicz
Modified:
3 years, 10 months ago
Reviewers:
dominickn, Xi Han
CC:
chromium-reviews, agrieve+watch_chromium.org, mlamouri (slow - plz ping)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android Webapps]: Do not resize homescreen icon when not padding the icon This CL makes ShortcutHelper#createHomescreenIconFromWebIcon() not do any resizing when: - No padding is to be applied AND - The icon's size does not exceed ActivityManager#getLauncherLargeIconSize() * MAX_INNER_SIZE_RATIO Resizing an icon to make it slightly larger was making the homescreen blurry. On top of the resizing done in ShortcutHelper#createHomescreenIconFromWebIcon() the Android launcher resizes icons if necessary. BUG=690093 Review-Url: https://codereview.chromium.org/2686623005 Cr-Commit-Position: refs/heads/master@{#449320} Committed: https://chromium.googlesource.com/chromium/src/+/e10eb740ce96e420b4489f9beb7749b6b35b5e4f

Patch Set 1 #

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -11 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 1 2 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
pkotwicz
Xi, can you please take a look?
3 years, 10 months ago (2017-02-08 18:45:37 UTC) #3
Xi Han
lgtm with nits. https://codereview.chromium.org/2686623005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java (right): https://codereview.chromium.org/2686623005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java#newcode404 chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java:404: int outerSize; Change here to: int ...
3 years, 10 months ago (2017-02-08 19:21:59 UTC) #4
pkotwicz
Dominick, can you please take a look?
3 years, 10 months ago (2017-02-09 00:46:24 UTC) #6
dominickn
Good catch, lgtm
3 years, 10 months ago (2017-02-09 01:01:48 UTC) #8
pkotwicz
Dominick, should I wait for Mounir's feedback too? (I think you added him as a ...
3 years, 10 months ago (2017-02-09 01:50:52 UTC) #9
pkotwicz
Dominick, should I wait for Mounir's feedback too? (I think you added him as a ...
3 years, 10 months ago (2017-02-09 01:50:53 UTC) #10
dominickn
Oops - meant to CC him as FYI. You can land this, since the only ...
3 years, 10 months ago (2017-02-09 01:59:11 UTC) #12
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/2686623005/20001
3 years, 10 months ago (2017-02-09 16:16:54 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-09 16:51:54 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e10eb740ce96e420b4489f9beb77...

Powered by Google App Engine
This is Rietveld 408576698