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

Issue 886163003: [Favicon] Add FallbackIconStyle and FallbackIconService. (Closed)

Created:
5 years, 10 months ago by huangs
Modified:
5 years, 10 months ago
Reviewers:
stevenjb, Ryan Sleevi
CC:
chromium-reviews, beaudoin, pkotwicz, calamity, sky, James Hawkins
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Favicon] Add FallbackIconStyle and FallbackIconService. Design: go/chrome-fallback-icons This implements - FallbackIconStyle: A struct to specify fallback data. - FallbackIconService: Helper class to render the fallback icon as a filled rounded square with a single letter from the URL. - Extra dependencies are needed to convert URL to the icon letter. This CL is sliced off from https://codereview.chromium.org/835903005/ . BUG=455063 Committed: https://crrev.com/3382fc9d60d79fc9d829fd626a4d591d2f2a23ff Cr-Commit-Position: refs/heads/master@{#315854}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplifying string operation. #

Patch Set 3 : Sync. #

Patch Set 4 : Fix IOS font and Skia dependency issues. #

Patch Set 5 : Second try on IOS and GN. #

Patch Set 6 : Updating public_deps in .gn file. #

Patch Set 7 : Remove dependence on platform_locale_settings (from components to Chrome). #

Patch Set 8 : Experimenting with fix for Skia dependency issues. #

Patch Set 9 : Moving FallbackIconStyle to its own file to fix Skia dependency issues. #

Total comments: 8

Patch Set 10 : Comment fix; moved FallbackIconStyle member functions outside of struct. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -6 lines) Patch
M components/favicon_base.gypi View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -3 lines 0 comments Download
M components/favicon_base/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M components/favicon_base/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A components/favicon_base/fallback_icon_service.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A components/favicon_base/fallback_icon_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +98 lines, -0 lines 0 comments Download
A components/favicon_base/fallback_icon_style.h View 1 2 3 4 5 6 7 8 9 1 chunk +42 lines, -0 lines 2 comments Download
A components/favicon_base/fallback_icon_style.cc View 1 2 3 4 5 6 7 8 9 1 chunk +48 lines, -0 lines 0 comments Download
M components/favicon_base/favicon_types.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (9 generated)
huangs
OWNER review to stevenjb@. The files are moved from https://codereview.chromium.org/835903005/ and (so far) are unmodified. ...
5 years, 10 months ago (2015-01-31 00:28:19 UTC) #2
stevenjb
lgtm
5 years, 10 months ago (2015-02-02 21:21:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886163003/1
5 years, 10 months ago (2015-02-02 23:10:47 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/39939)
5 years, 10 months ago (2015-02-02 23:17:31 UTC) #7
huangs
OWNER review to rsleevi@: Added dependency to +net/base/registry_controlled_domains/registry_controlled_domain.h from components/favicon_base/DEPS . The use is in ...
5 years, 10 months ago (2015-02-02 23:26:15 UTC) #9
Ryan Sleevi
LGTM, but do not land this until you've filed an appropriate bug and added a ...
5 years, 10 months ago (2015-02-03 00:23:17 UTC) #10
huangs
Updated, and filed http://crbug.com/455063 to track this. Submitting. https://codereview.chromium.org/886163003/diff/1/components/favicon_base/fallback_icon_service.cc File components/favicon_base/fallback_icon_service.cc (right): https://codereview.chromium.org/886163003/diff/1/components/favicon_base/fallback_icon_service.cc#newcode36 components/favicon_base/fallback_icon_service.cc:36: base::i18n::ToUpper(base::ASCIIToUTF16(std::string(1, ...
5 years, 10 months ago (2015-02-04 03:29:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886163003/20001
5 years, 10 months ago (2015-02-04 03:29:54 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/4661)
5 years, 10 months ago (2015-02-04 03:37:02 UTC) #15
huangs
I can fix the compile problem on Linux-gn if I add "//chrome/app/resources:platform_locale_settings" to BUILD.gn (in ...
5 years, 10 months ago (2015-02-07 05:22:20 UTC) #16
huangs
Ping stevejb@: I changed the structure a little since your LGTM: 1. FallbackIconService now takes ...
5 years, 10 months ago (2015-02-09 23:26:04 UTC) #17
huangs
This is low risk and dragged on too long. Submitting.
5 years, 10 months ago (2015-02-11 04:40:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886163003/160001
5 years, 10 months ago (2015-02-11 04:42:10 UTC) #20
Ryan Sleevi
On 2015/02/11 04:40:55, huangs wrote: > This is low risk and dragged on too long. ...
5 years, 10 months ago (2015-02-11 04:42:51 UTC) #21
huangs
Ah okay, apologies. I'll bug people tomorrow then.
5 years, 10 months ago (2015-02-11 05:06:21 UTC) #23
stevenjb
Apologies for the delay, was busy the past couple of days. https://codereview.chromium.org/886163003/diff/160001/components/favicon_base/fallback_icon_service.cc File components/favicon_base/fallback_icon_service.cc (right): ...
5 years, 10 months ago (2015-02-11 18:04:37 UTC) #24
huangs
Thanks. Updated, PTAL. https://codereview.chromium.org/886163003/diff/160001/components/favicon_base/fallback_icon_service.cc File components/favicon_base/fallback_icon_service.cc (right): https://codereview.chromium.org/886163003/diff/160001/components/favicon_base/fallback_icon_service.cc#newcode26 components/favicon_base/fallback_icon_service.cc:26: const int kMaxFallbackFaviconSize = 288; On ...
5 years, 10 months ago (2015-02-11 20:28:39 UTC) #25
stevenjb
lgtm https://codereview.chromium.org/886163003/diff/180001/components/favicon_base/fallback_icon_style.h File components/favicon_base/fallback_icon_style.h (right): https://codereview.chromium.org/886163003/diff/180001/components/favicon_base/fallback_icon_style.h#newcode38 components/favicon_base/fallback_icon_style.h:38: bool ValidateFallbackIconStyle(const FallbackIconStyle& style); FWIW I think this ...
5 years, 10 months ago (2015-02-11 21:15:58 UTC) #26
huangs
Thanks! https://codereview.chromium.org/886163003/diff/180001/components/favicon_base/fallback_icon_style.h File components/favicon_base/fallback_icon_style.h (right): https://codereview.chromium.org/886163003/diff/180001/components/favicon_base/fallback_icon_style.h#newcode38 components/favicon_base/fallback_icon_style.h:38: bool ValidateFallbackIconStyle(const FallbackIconStyle& style); On 2015/02/11 21:15:58, stevenjb ...
5 years, 10 months ago (2015-02-11 21:21:56 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886163003/180001
5 years, 10 months ago (2015-02-11 21:33:50 UTC) #29
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 10 months ago (2015-02-11 22:18:48 UTC) #30
commit-bot: I haz the power
5 years, 10 months ago (2015-02-11 22:19:31 UTC) #31
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3382fc9d60d79fc9d829fd626a4d591d2f2a23ff
Cr-Commit-Position: refs/heads/master@{#315854}

Powered by Google App Engine
This is Rietveld 408576698