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

Issue 1018733002: [Icons NTP] FaviconService: Add method to retrieve large icon. (Closed)

Created:
5 years, 9 months ago by huangs
Modified:
5 years, 9 months ago
CC:
chromium-reviews, beaudoin, Roger McFarlane (Chromium)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Icons NTP] FaviconService: Add method to retrieve large icon. The new method GetGenericLargeIconForPageURL() is intended the upcoming chrome-search://big-icon endpoint, to supply large icon to the NTP. A new function is needed (rather than using GetLargestRawFaviconForPageURL()) to provide more flexibility, e.g. don't need |icon_types|. Also later we may update this to return a small favicon for dominant color extraction. BUG=467712

Patch Set 1 #

Total comments: 4

Patch Set 2 : Resize icons, also allow large FAVICON to be used. #

Patch Set 3 : Stop using FAVICON; fixing #include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M components/favicon/core/browser/favicon_service.h View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M components/favicon/core/browser/favicon_service.cc View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
huangs
PTAL.
5 years, 9 months ago (2015-03-17 20:10:40 UTC) #2
Roger McFarlane (Chromium)
lgtm
5 years, 9 months ago (2015-03-17 20:25:59 UTC) #4
beaudoin
https://codereview.chromium.org/1018733002/diff/1/components/favicon/core/browser/favicon_service.cc File components/favicon/core/browser/favicon_service.cc (right): https://codereview.chromium.org/1018733002/diff/1/components/favicon/core/browser/favicon_service.cc#newcode209 components/favicon/core/browser/favicon_service.cc:209: Bind(&FaviconService::RunFaviconRawBitmapCallbackWithBitmapResults, RunFaviconRawBitmapCallbackWithBitmapResults looks like it can perform the resizing ...
5 years, 9 months ago (2015-03-17 23:42:50 UTC) #6
huangs
Updated, PTAL. https://codereview.chromium.org/1018733002/diff/1/components/favicon/core/browser/favicon_service.cc File components/favicon/core/browser/favicon_service.cc (right): https://codereview.chromium.org/1018733002/diff/1/components/favicon/core/browser/favicon_service.cc#newcode209 components/favicon/core/browser/favicon_service.cc:209: Bind(&FaviconService::RunFaviconRawBitmapCallbackWithBitmapResults, Nope, just an oversight. Using this ...
5 years, 9 months ago (2015-03-18 20:31:37 UTC) #7
huangs
Problem with Patch Set 2: If only low-res favicon is available, it will scale up! ...
5 years, 9 months ago (2015-03-18 20:34:13 UTC) #8
huangs
Ping jam@, PTAL. Thanks!
5 years, 9 months ago (2015-03-18 22:05:43 UTC) #9
beaudoin
https://codereview.chromium.org/1018733002/diff/1/components/favicon/core/browser/favicon_service.cc File components/favicon/core/browser/favicon_service.cc (right): https://codereview.chromium.org/1018733002/diff/1/components/favicon/core/browser/favicon_service.cc#newcode209 components/favicon/core/browser/favicon_service.cc:209: Bind(&FaviconService::RunFaviconRawBitmapCallbackWithBitmapResults, On 2015/03/18 20:31:37, huangs wrote: > Nope, just ...
5 years, 9 months ago (2015-03-19 02:36:27 UTC) #10
huangs
Update: We can skip this patch to unblock https://codereview.chromium.org/1016833003/#ps1 https://codereview.chromium.org/1018733002/diff/1/components/favicon/core/browser/favicon_service.cc File components/favicon/core/browser/favicon_service.cc (right): https://codereview.chromium.org/1018733002/diff/1/components/favicon/core/browser/favicon_service.cc#newcode209 components/favicon/core/browser/favicon_service.cc:209: ...
5 years, 9 months ago (2015-03-19 14:46:29 UTC) #11
huangs
5 years, 9 months ago (2015-03-20 15:26:29 UTC) #12
Closing issue since we don't need it (yet).

Powered by Google App Engine
This is Rietveld 408576698