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

Issue 835903005: [Favicon] Add new fallback icon rendering flow. (Closed)

Created:
5 years, 11 months ago by huangs
Modified:
5 years, 9 months ago
CC:
chromium-reviews, browser-components-watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Favicon] Add new fallback icon rendering flow. Design: go/chrome-fallback-icons This implements the "explicit" flow to get a fallback icon by specifying the URL directly. For example: chrome://fallback-icon/32,00f,ccf,0.5,0.8/http://www.google.com/ Otherwise there's no change to existing UI. Details: - Adding FallbackIconSource to host chrome://fallback-icon/ - Adding FaviconService::GetRawFallbackFaviconImage() to return image. - Adding ParseFallbackIconPath() to parse chrome://fallback-icon/ styles. - Unit tests for parser. This CL has been sliced into smaller pieces: https://codereview.chromium.org/886163003/ https://codereview.chromium.org/924063003/ https://codereview.chromium.org/973883002/ BUG=455063

Patch Set 1 #

Patch Set 2 : Refactor by extracting FallbackIconSpecsBuilder. #

Total comments: 10

Patch Set 3 : Adding new host chrome://fallback-icon. #

Total comments: 67

Patch Set 4 : Style fixes, removing pure-cleanup cleanges. #

Patch Set 5 : Removing FallbackIconStyleBuilder; trimming down chrome://fallback-icon syntax. #

Total comments: 69

Patch Set 6 : Cleanup and simplification. #

Total comments: 4

Patch Set 7 : Comment and style fix. #

Patch Set 8 : Sync and merge. #

Total comments: 12

Patch Set 9 : Style and comment fixes. #

Patch Set 10 : Sync. #

Patch Set 11 : Sync and split off components/favicon_base piece (https://codereview.chromium.org/886163003/). #

Patch Set 12 : Getting code to work again after merge. #

Patch Set 13 : Sync and split off FallbackIconUrlParser piece (https://codereview.chromium.org/924063003/). #

Patch Set 14 : Getting code to work again after merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -1 line) Patch
M chrome/browser/search/instant_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/fallback_icon_source.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/fallback_icon_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/most_visited_handler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M components/favicon_base/fallback_icon_service.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 48 (8 generated)
huangs
PTAL.
5 years, 11 months ago (2015-01-16 20:04:41 UTC) #2
pkotwicz
A few preliminary comments. I want to keep the code for fallback icons separate from ...
5 years, 11 months ago (2015-01-19 04:32:02 UTC) #3
pkotwicz
https://codereview.chromium.org/835903005/diff/20001/components/favicon_base/fallback_icon_service.cc File components/favicon_base/fallback_icon_service.cc (right): https://codereview.chromium.org/835903005/diff/20001/components/favicon_base/fallback_icon_service.cc#newcode94 components/favicon_base/fallback_icon_service.cc:94: FaviconRawBitmapResult result; Having the fallback icon codepath separate from ...
5 years, 11 months ago (2015-01-19 04:36:23 UTC) #4
huangs
On 2015/01/19 04:32:02, pkotwicz wrote: > A few preliminary comments. > > I want to ...
5 years, 11 months ago (2015-01-19 05:01:10 UTC) #5
pkotwicz
I don't mind if FallbackIconService is in chrome/browser/favicon as opposed to in components/favicon_base If FallbackIconService ...
5 years, 11 months ago (2015-01-19 15:39:30 UTC) #6
huangs
Updated, PTAL. Also renamed FallbackIconSpecs* to FallbackIconStyle*. https://codereview.chromium.org/835903005/diff/20001/chrome/browser/favicon/favicon_service.h File chrome/browser/favicon/favicon_service.h (right): https://codereview.chromium.org/835903005/diff/20001/chrome/browser/favicon/favicon_service.h#newcode91 chrome/browser/favicon/favicon_service.h:91: // beyond ...
5 years, 11 months ago (2015-01-20 22:20:42 UTC) #7
pkotwicz
Sorry, I didn't see your new CL. I will take a look on Wednesday morning
5 years, 11 months ago (2015-01-21 04:52:11 UTC) #8
pkotwicz
Thank you for separating the fallback icon code into its own class A few comments ...
5 years, 11 months ago (2015-01-21 19:44:16 UTC) #9
huangs
Updated. I think we should keep size separate. PTAL. https://codereview.chromium.org/835903005/diff/40001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/835903005/diff/40001/chrome/browser/extensions/extension_service.cc#newcode1076 chrome/browser/extensions/extension_service.cc:1076: ...
5 years, 11 months ago (2015-01-22 01:13:28 UTC) #10
pkotwicz
https://codereview.chromium.org/835903005/diff/40001/chrome/browser/ui/webui/fallback_icon_source.h File chrome/browser/ui/webui/fallback_icon_source.h (right): https://codereview.chromium.org/835903005/diff/40001/chrome/browser/ui/webui/fallback_icon_source.h#newcode20 chrome/browser/ui/webui/fallback_icon_source.h:20: // 'size&scalefactor' Optional I don't think that making chrome://fallback-icon ...
5 years, 11 months ago (2015-01-22 16:14:20 UTC) #11
huangs
Updated, PTAL. https://codereview.chromium.org/835903005/diff/40001/chrome/browser/ui/webui/fallback_icon_source.h File chrome/browser/ui/webui/fallback_icon_source.h (right): https://codereview.chromium.org/835903005/diff/40001/chrome/browser/ui/webui/fallback_icon_source.h#newcode20 chrome/browser/ui/webui/fallback_icon_source.h:20: // 'size&scalefactor' Optional Done, removed scale factor, ...
5 years, 11 months ago (2015-01-22 22:51:39 UTC) #12
pkotwicz
Thanks for bearing with me. I think that sky@ can do the next review https://codereview.chromium.org/835903005/diff/80001/chrome/browser/ui/webui/fallback_icon_source.h ...
5 years, 11 months ago (2015-01-23 16:00:48 UTC) #13
huangs
Updated, PTAL. https://codereview.chromium.org/835903005/diff/80001/chrome/browser/ui/webui/fallback_icon_source.h File chrome/browser/ui/webui/fallback_icon_source.h (right): https://codereview.chromium.org/835903005/diff/80001/chrome/browser/ui/webui/fallback_icon_source.h#newcode11 chrome/browser/ui/webui/fallback_icon_source.h:11: // FaviconSource is the gateway between network-level ...
5 years, 11 months ago (2015-01-23 19:47:52 UTC) #14
pkotwicz
LGTM +sky@ for OWNERS review. I am unsure whether the format of FallbackIconStyle is legal ...
5 years, 11 months ago (2015-01-23 20:43:39 UTC) #16
pkotwicz
https://codereview.chromium.org/835903005/diff/100001/chrome/common/favicon/fallback_icon_url_parser_unittest.cc File chrome/common/favicon/fallback_icon_url_parser_unittest.cc (right): https://codereview.chromium.org/835903005/diff/100001/chrome/common/favicon/fallback_icon_url_parser_unittest.cc#newcode18 chrome/common/favicon/fallback_icon_url_parser_unittest.cc:18: // /components/favicon_base/favicon_types.h Nit: fix whitespace
5 years, 11 months ago (2015-01-23 20:44:08 UTC) #17
sky
On 2015/01/23 20:43:39, pkotwicz wrote: > LGTM > > +sky@ for OWNERS review. I am ...
5 years, 11 months ago (2015-01-23 23:40:42 UTC) #18
huangs
Can I change FallbackIconStyle back to struct then? It has a couple of function functions ...
5 years, 11 months ago (2015-01-24 00:01:32 UTC) #19
sky
Converting to a struct is fine. -Scott On Fri, Jan 23, 2015 at 4:01 PM, ...
5 years, 11 months ago (2015-01-26 15:37:47 UTC) #20
huangs
Updated, PTAL. https://codereview.chromium.org/835903005/diff/100001/chrome/common/favicon/fallback_icon_url_parser_unittest.cc File chrome/common/favicon/fallback_icon_url_parser_unittest.cc (right): https://codereview.chromium.org/835903005/diff/100001/chrome/common/favicon/fallback_icon_url_parser_unittest.cc#newcode18 chrome/common/favicon/fallback_icon_url_parser_unittest.cc:18: // /components/favicon_base/favicon_types.h On 2015/01/23 20:44:08, pkotwicz wrote: ...
5 years, 11 months ago (2015-01-26 21:34:56 UTC) #21
huangs
OWNER reviews: erikwright@: components\favicon_base.gypi components\favicon_base\* jhawkins@: chrome\browser\search\instant_service.cc chrome\browser\ui\webui\* chrome\common\favicon\* sky@: chrome\*.gypi chrome\common\url_constants.* PTAL. Thanks!
5 years, 10 months ago (2015-01-28 18:08:24 UTC) #23
sky
requested files LGTM
5 years, 10 months ago (2015-01-28 21:13:06 UTC) #24
erikwright (departed)
On 2015/01/28 21:13:06, sky wrote: > requested files LGTM Please select an OWNER from components/favicon_base: ...
5 years, 10 months ago (2015-01-29 16:14:44 UTC) #25
huangs
"git cl owner" claims you're an owner; will investigate this. Meanwhile, I'll bug stevenjb@. Thanks!
5 years, 10 months ago (2015-01-29 16:17:01 UTC) #26
huangs
OWNER review to stevenjb@: components\favicon_base.gypi components\favicon_base\* PTAL. Thanks!
5 years, 10 months ago (2015-01-29 16:17:51 UTC) #28
erikwright (departed)
On 2015/01/29 16:17:51, huangs1 wrote: > OWNER review to stevenjb@: > components\favicon_base.gypi > components\favicon_base\* > ...
5 years, 10 months ago (2015-01-29 16:25:25 UTC) #29
stevenjb
https://codereview.chromium.org/835903005/diff/140001/components/favicon_base/fallback_icon_service.cc File components/favicon_base/fallback_icon_service.cc (right): https://codereview.chromium.org/835903005/diff/140001/components/favicon_base/fallback_icon_service.cc#newcode43 components/favicon_base/fallback_icon_service.cc:43: l10n_util::GetStringUTF8(IDS_SANS_SERIF_FONT_FAMILY); Pt this in #else to avoid duplicate assignment ...
5 years, 10 months ago (2015-01-29 21:41:08 UTC) #30
huangs
Updated, PTAL. Adding pam@ for change to DEPS: +net/base/registry_controlled_domains/registry_controlled_domain.h' Also, ping jhawkins@. https://codereview.chromium.org/835903005/diff/140001/components/favicon_base/fallback_icon_service.cc File components/favicon_base/fallback_icon_service.cc ...
5 years, 10 months ago (2015-01-29 23:48:27 UTC) #32
stevenjb
lgtm
5 years, 10 months ago (2015-01-29 23:53:01 UTC) #33
James Hawkins
On 2015/01/28 18:08:24, huangs1 wrote: > OWNER reviews: > > erikwright@: > components\favicon_base.gypi > components\favicon_base\* ...
5 years, 10 months ago (2015-01-30 00:22:57 UTC) #34
James Hawkins
This is a rather large CL. Is there a (mini-) design doc for this?
5 years, 10 months ago (2015-01-30 00:24:34 UTC) #35
huangs
It's here: go/chrome-fallback-icons
5 years, 10 months ago (2015-01-30 00:25:45 UTC) #36
huangs
OWNER review to kmadhusu@ for chrome/browser/search/instant_service.cc PTAL.
5 years, 10 months ago (2015-01-30 00:27:45 UTC) #38
James Hawkins
On 2015/01/30 00:25:45, huangs1 wrote: > It's here: go/chrome-fallback-icons Thanks. I don't see anything about ...
5 years, 10 months ago (2015-01-30 17:46:17 UTC) #39
huangs
The FallbackIconSource stuff is described by the fallback icon specs part, and the fact that ...
5 years, 10 months ago (2015-01-30 19:15:29 UTC) #40
Pam (message me for reviews)
Since this has been split into two other reviews, please close this issue. Thanks, - ...
5 years, 10 months ago (2015-02-23 10:25:58 UTC) #41
huangs
This CL is the third piece: making the feature accessible via chrome://fallback-favicon . Once the ...
5 years, 10 months ago (2015-02-23 16:41:09 UTC) #42
Jered
lgtm
5 years, 9 months ago (2015-03-03 19:08:23 UTC) #45
Jered
lgtm
5 years, 9 months ago (2015-03-03 19:08:23 UTC) #46
huangs
On 2015/03/03 19:08:23, Jered wrote: > lgtm Thanks. Could you PTAL https://codereview.chromium.org/973883002/ ? I'm going ...
5 years, 9 months ago (2015-03-03 19:20:42 UTC) #47
huangs
5 years, 9 months ago (2015-03-06 01:27:13 UTC) #48
Message was sent while issue was closed.
Closing CL as all the pieces have been committed.

Powered by Google App Engine
This is Rietveld 408576698