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

Issue 1016833003: [Icons NTP] Add chrome://large-icon host, which resizes icon and renders fallback. (Closed)

Created:
5 years, 9 months ago by huangs
Modified:
5 years, 9 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, samarth+watch_chromium.org, estade+watch_chromium.org, kmadhusu+watch_chromium.org, Jered, pedrosimonetti+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Icons NTP] Add chrome://large-icon host, which resizes icon and renders fallback. The chrome://large-icon endpoint is meant to serve (square) large icons to the NTP to replace thumbnails. If icon is available, it is resized first. Otherwise a fallback of the requested size is returned. Therefore a custom NTP should always gets an image back, and cannot deduce whether user has visited a site by examining icon presence or icon size. BUG=467712 Committed: https://crrev.com/28365cabceeefe79bc02f0a7882f8889e6c58b8d Cr-Commit-Position: refs/heads/master@{#321464}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Removing resize code and render_fallback_on_failure_. #

Patch Set 3 : Using existing FaviconService method. #

Patch Set 4 : Sync. #

Total comments: 1

Patch Set 5 : Fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -0 lines) Patch
M chrome/browser/search/instant_service.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/large_icon_source.h View 1 1 chunk +81 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/large_icon_source.cc View 1 2 3 4 1 chunk +144 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
huangs
This CL has two prerequisites: - https://codereview.chromium.org/1014853004 for LargeIconParser. - https://codereview.chromium.org/1018733002 for FaviconService::GetGenericLargeIconForPageURL(). PTAL. jhawkins@: ...
5 years, 9 months ago (2015-03-17 20:24:16 UTC) #2
Roger McFarlane (Chromium)
https://codereview.chromium.org/1016833003/diff/1/chrome/browser/ui/webui/large_icon_source.h File chrome/browser/ui/webui/large_icon_source.h (right): https://codereview.chromium.org/1016833003/diff/1/chrome/browser/ui/webui/large_icon_source.h#newcode20 chrome/browser/ui/webui/large_icon_source.h:20: // All of the parameters except for the url ...
5 years, 9 months ago (2015-03-17 20:41:02 UTC) #3
beaudoin
https://codereview.chromium.org/1016833003/diff/1/chrome/browser/ui/webui/large_icon_source.cc File chrome/browser/ui/webui/large_icon_source.cc (right): https://codereview.chromium.org/1016833003/diff/1/chrome/browser/ui/webui/large_icon_source.cc#newcode31 chrome/browser/ui/webui/large_icon_source.cc:31: int kMaxLargeIconSize = 512; // Arbitrary bound to safegard ...
5 years, 9 months ago (2015-03-17 23:08:36 UTC) #4
huangs
Updated, PTAL. https://codereview.chromium.org/1016833003/diff/1/chrome/browser/ui/webui/large_icon_source.cc File chrome/browser/ui/webui/large_icon_source.cc (right): https://codereview.chromium.org/1016833003/diff/1/chrome/browser/ui/webui/large_icon_source.cc#newcode31 chrome/browser/ui/webui/large_icon_source.cc:31: int kMaxLargeIconSize = 512; // Arbitrary bound ...
5 years, 9 months ago (2015-03-18 22:54:12 UTC) #5
beaudoin
w00t on removing resizing code. :) LGTM https://codereview.chromium.org/1016833003/diff/1/chrome/browser/ui/webui/large_icon_source.cc File chrome/browser/ui/webui/large_icon_source.cc (right): https://codereview.chromium.org/1016833003/diff/1/chrome/browser/ui/webui/large_icon_source.cc#newcode57 chrome/browser/ui/webui/large_icon_source.cc:57: font_list.push_back("Helvetica Neue"); ...
5 years, 9 months ago (2015-03-19 01:50:18 UTC) #6
huangs
Now this CL is unblocked! Going to sync.
5 years, 9 months ago (2015-03-19 14:53:43 UTC) #7
James Hawkins
LGTM with nit. https://codereview.chromium.org/1016833003/diff/60001/chrome/browser/ui/webui/large_icon_source.cc File chrome/browser/ui/webui/large_icon_source.cc (right): https://codereview.chromium.org/1016833003/diff/60001/chrome/browser/ui/webui/large_icon_source.cc#newcode26 chrome/browser/ui/webui/large_icon_source.cc:26: int kMaxLargeIconSize = 192; // Arbitrary ...
5 years, 9 months ago (2015-03-19 18:47:31 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1016833003/80001
5 years, 9 months ago (2015-03-19 21:19:45 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-19 23:05:23 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-19 23:06:22 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/28365cabceeefe79bc02f0a7882f8889e6c58b8d
Cr-Commit-Position: refs/heads/master@{#321464}

Powered by Google App Engine
This is Rietveld 408576698