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

Issue 1596273003: [Android] Use fallback icon if there is no large favicon on the history page (Closed)

Created:
4 years, 11 months ago by pkotwicz
Modified:
4 years, 10 months ago
Reviewers:
Dan Beam, newt (away)
CC:
chromium-reviews, Patrick Dubroy, pam+watch_chromium.org, browser-components-watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, tsergeant, klobag.chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Use fallback icon if there is no large favicon on the history page This CL makes the history page use a rounded rectangle with the first letter of the URL for history entries for which there is no large enough favicon. Previously, the history page did a really bad resize for entries for which there is no large enough favicon. This CL: - Introduces an Android version of FallbackIconService: FallbackIconServiceImplAndroid which uses RoundedIconGenerator - Encodes the SkBitmap produced by FallbackIconService to PNG on a worker thread. Encoding to PNG takes on average 5ms on a Nexus 5. BUG=566012 Committed: https://crrev.com/52ce2121706ad270ecf5ee01b400e3f0aabd941b Cr-Commit-Position: refs/heads/master@{#374247}

Patch Set 1 #

Patch Set 2 : #

Total comments: 24

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -42 lines) Patch
M chrome/browser/resources/history/externs.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/history/history.css View 1 2 2 chunks +14 lines, -29 lines 0 comments Download
M chrome/browser/resources/history/history.js View 1 2 6 chunks +47 lines, -11 lines 0 comments Download
M chrome/browser/resources/history/history_mobile.css View 1 2 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler.cc View 1 2 4 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/large_icon_source.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M ui/webui/resources/js/cr.js View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
pkotwicz
Newton, can you please take a look? We will probably want to change the font ...
4 years, 11 months ago (2016-01-18 16:57:35 UTC) #2
newt (away)
Why not just use HTML to render a rounded rectangle with a letter in it? ...
4 years, 11 months ago (2016-01-19 22:11:05 UTC) #3
pkotwicz
newt@ can you please take another look? The fallback icon is now generated in Javascript.
4 years, 11 months ago (2016-01-25 04:40:53 UTC) #4
newt (away)
dbeam should take a look. He's much more familiar with the history webui page. https://codereview.chromium.org/1596273003/diff/20001/chrome/browser/resources/history/history.js ...
4 years, 11 months ago (2016-01-25 19:43:35 UTC) #6
pkotwicz
newt@ and dbeam@: I was wondering if I can get some advice on implementing newt@'s ...
4 years, 11 months ago (2016-01-26 01:22:05 UTC) #7
pkotwicz
dbeam@ Ping!
4 years, 11 months ago (2016-01-27 16:01:51 UTC) #8
Dan Beam
out of curiosity, could we just return the letter/color encoded in the bitmap instead?
4 years, 11 months ago (2016-01-28 04:03:37 UTC) #9
pkotwicz
dbeam@: How would I get the bitmap bytes from Javascript?
4 years, 11 months ago (2016-01-28 04:14:06 UTC) #10
Dan Beam
On 2016/01/28 04:14:06, pkotwicz wrote: > dbeam@: How would I get the bitmap bytes from ...
4 years, 11 months ago (2016-01-28 04:29:43 UTC) #11
pkotwicz
dbeam@: The issue that I am trying to get around is that painting text into ...
4 years, 10 months ago (2016-01-28 16:14:56 UTC) #12
pkotwicz
Ping!
4 years, 10 months ago (2016-02-05 20:36:06 UTC) #13
pkotwicz
dbeam: Ping!
4 years, 10 months ago (2016-02-05 20:36:21 UTC) #14
Dan Beam
ok, after our talk: * the current CSS/HTML/JS impl would is not likely to be ...
4 years, 10 months ago (2016-02-05 20:42:12 UTC) #15
pkotwicz
dbeam@ can you please take another look? I think that I have addressed all of ...
4 years, 10 months ago (2016-02-06 02:59:55 UTC) #16
Dan Beam
pre-lgtm but get newt@'s consensus, IMO https://codereview.chromium.org/1596273003/diff/40001/chrome/browser/resources/history/externs.js File chrome/browser/resources/history/externs.js (right): https://codereview.chromium.org/1596273003/diff/40001/chrome/browser/resources/history/externs.js#newcode22 chrome/browser/resources/history/externs.js:22: * fallbackFaviconChar: string, ...
4 years, 10 months ago (2016-02-06 03:34:29 UTC) #17
pkotwicz
newt@ can you please take a look? https://codereview.chromium.org/1596273003/diff/40001/chrome/browser/resources/history/externs.js File chrome/browser/resources/history/externs.js (right): https://codereview.chromium.org/1596273003/diff/40001/chrome/browser/resources/history/externs.js#newcode22 chrome/browser/resources/history/externs.js:22: * fallbackFaviconChar: ...
4 years, 10 months ago (2016-02-06 04:31:27 UTC) #18
newt (away)
lgtm Sending the fallback color via a 1x1 icon is a bit hacky, but it ...
4 years, 10 months ago (2016-02-08 18:28:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1596273003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1596273003/60001
4 years, 10 months ago (2016-02-08 21:42:26 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-09 01:07:00 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 01:08:07 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/52ce2121706ad270ecf5ee01b400e3f0aabd941b
Cr-Commit-Position: refs/heads/master@{#374247}

Powered by Google App Engine
This is Rietveld 408576698