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

Issue 973883002: [Favicon] Adding chrome://fallback-icon host for Fallback Icon "Explicit Flow" (Closed)

Created:
5 years, 9 months ago by huangs
Modified:
5 years, 9 months ago
Reviewers:
sdefresne, Jered, Evan Stade
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

[Favicon] Adding chrome://fallback-icon host for Fallback Icon "Explicit Flow" Design: go/chrome-fallback-icons We're chrome://fallback-icon host, managed by FallbackIconSource, so we can specify URLs such as chrome://fallback-icon/128,#f00,black,0.8,0.1/http://www.google.com to render a fallback icon. This is useful for testing fallback icons. This CL is sliced off from https://codereview.chromium.org/835903005/ . BUG=455063 Committed: https://crrev.com/eca0396a32627c4dd40400e94f8c247d8dd4293a Cr-Commit-Position: refs/heads/master@{#319333}

Patch Set 1 #

Patch Set 2 : Comment update on color formats. #

Patch Set 3 : Replacing std::unique_ptr<> with scoped_ptr<>. #

Total comments: 4

Patch Set 4 : Comment fix and string cleanup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -1 line) Patch
M chrome/browser/search/instant_service.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/fallback_icon_source.h View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/fallback_icon_source.cc View 1 2 3 1 chunk +83 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 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M components/favicon_base/fallback_icon_service.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 14 (3 generated)
huangs
OWNER reviews: (generic): chrome/common/url_constants.* chrome/chrome_browser_ui.gypi sdefresne@: components/favicon_base/fallback_icon_service.cc jered@: chrome/browser/search/instant_service.cc estade@: chrome/browser/ui/webui/fallback_icon_source.cc chrome/browser/ui/webui/fallback_icon_source.h chrome/browser/ui/webui/ntp/most_visited_handler.cc The files ...
5 years, 9 months ago (2015-03-03 19:00:17 UTC) #2
Jered
still lgtm
5 years, 9 months ago (2015-03-03 19:21:44 UTC) #3
sdefresne
lgtm for components/favicon_base
5 years, 9 months ago (2015-03-04 10:11:38 UTC) #4
huangs
Ping estade@ for review. Thanks.
5 years, 9 months ago (2015-03-04 18:11:49 UTC) #5
Evan Stade
lgtm https://codereview.chromium.org/973883002/diff/40001/chrome/browser/ui/webui/fallback_icon_source.cc File chrome/browser/ui/webui/fallback_icon_source.cc (right): https://codereview.chromium.org/973883002/diff/40001/chrome/browser/ui/webui/fallback_icon_source.cc#newcode25 chrome/browser/ui/webui/fallback_icon_source.cc:25: const std::string kIOSFontFamily = "Helvetica Neue"; just inline ...
5 years, 9 months ago (2015-03-05 02:54:42 UTC) #6
huangs
Thanks. Committing! https://codereview.chromium.org/973883002/diff/40001/chrome/browser/ui/webui/fallback_icon_source.cc File chrome/browser/ui/webui/fallback_icon_source.cc (right): https://codereview.chromium.org/973883002/diff/40001/chrome/browser/ui/webui/fallback_icon_source.cc#newcode25 chrome/browser/ui/webui/fallback_icon_source.cc:25: const std::string kIOSFontFamily = "Helvetica Neue"; On ...
5 years, 9 months ago (2015-03-05 19:47:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973883002/60001
5 years, 9 months ago (2015-03-05 19:48:43 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-05 21:44:00 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/eca0396a32627c4dd40400e94f8c247d8dd4293a Cr-Commit-Position: refs/heads/master@{#319333}
5 years, 9 months ago (2015-03-05 21:44:43 UTC) #12
huangs
The patch was reverted in https://codereview.chromium.org/988863002/ due to use after free. Culprit: In ParseFallbackIconPath::parseColor, the ...
5 years, 9 months ago (2015-03-09 18:17:55 UTC) #13
huangs
5 years, 9 months ago (2015-03-09 18:17:55 UTC) #14
Message was sent while issue was closed.
The patch was reverted in https://codereview.chromium.org/988863002/
due to use after free.  Culprit: In ParseFallbackIconPath::parseColor, the
fragment

("#" + color_str).c_str()

creates temp string and sends pointer.  The return value |end| comes from this
guy, which gets deallocated after then line, but used in the next line to see if
string was consumed.

Hurray for ASAN!  Going to create new CL for this.

Powered by Google App Engine
This is Rietveld 408576698