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

Issue 2811123003: [Content suggestions] Allow to specify URLs for favicons (Closed)

Created:
3 years, 8 months ago by jkrcal
Modified:
3 years, 8 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, gambard
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Content suggestions] Allow to override URLs for favicons This CL enables content suggestions providers to specify the URL used to fetch favicon of the suggestion. To minimize code bloat, this is not needed. If url_with_favicon() is missing, url() is used by ContentSuggestionsService, instead. BUG=676259 Review-Url: https://codereview.chromium.org/2811123003 Cr-Commit-Position: refs/heads/master@{#464314} Committed: https://chromium.googlesource.com/chromium/src/+/cd011686c4e1fb0b82628b8c08fde2f8cc7b9bcb

Patch Set 1 #

Total comments: 5

Patch Set 2 : Marc's comment #

Total comments: 10

Patch Set 3 : Marc's comments #2 #

Patch Set 4 : Marc's comments #3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -8 lines) Patch
M components/ntp_snippets/content_suggestion.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestion.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
jkrcal
[Preliminary version, this does not compile] Marc, could you PTAL before I go and add ...
3 years, 8 months ago (2017-04-12 09:51:57 UTC) #2
Marc Treib
Once this is done, you should notify gambard@: Currently ReadingListSuggestionExtra has a special favicon_url field ...
3 years, 8 months ago (2017-04-12 10:00:59 UTC) #3
vitaliii
drive-by. https://codereview.chromium.org/2811123003/diff/1/components/ntp_snippets/content_suggestions_provider.h File components/ntp_snippets/content_suggestions_provider.h (right): https://codereview.chromium.org/2811123003/diff/1/components/ntp_snippets/content_suggestions_provider.h#newcode102 components/ntp_snippets/content_suggestions_provider.h:102: virtual GURL GetSuggestionURLForFavicon( On 2017/04/12 10:00:59, Marc Treib ...
3 years, 8 months ago (2017-04-12 10:21:40 UTC) #5
jkrcal
Thanks, PTAL again! (now it compiles so treat it as a final CL, please) https://codereview.chromium.org/2811123003/diff/1/components/ntp_snippets/content_suggestions_provider.h ...
3 years, 8 months ago (2017-04-12 11:11:22 UTC) #9
Marc Treib
LGTM with nits https://codereview.chromium.org/2811123003/diff/20001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2811123003/diff/20001/components/ntp_snippets/content_suggestions_service.cc#newcode155 components/ntp_snippets/content_suggestions_service.cc:155: const GURL& publisher_url = s/publisher_url/url_with_favicon/ ? ...
3 years, 8 months ago (2017-04-12 11:48:00 UTC) #12
jkrcal
Thanks! https://codereview.chromium.org/2811123003/diff/20001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2811123003/diff/20001/components/ntp_snippets/content_suggestions_service.cc#newcode155 components/ntp_snippets/content_suggestions_service.cc:155: const GURL& publisher_url = On 2017/04/12 11:48:00, Marc ...
3 years, 8 months ago (2017-04-12 12:44:19 UTC) #15
Marc Treib
https://codereview.chromium.org/2811123003/diff/20001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2811123003/diff/20001/components/ntp_snippets/content_suggestions_service.cc#newcode157 components/ntp_snippets/content_suggestions_service.cc:157: ? position->url_with_favicon().GetWithEmptyPath() On 2017/04/12 12:44:19, jkrcal wrote: > On ...
3 years, 8 months ago (2017-04-12 12:50:19 UTC) #18
jkrcal
Thanks, again :) https://codereview.chromium.org/2811123003/diff/20001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2811123003/diff/20001/components/ntp_snippets/content_suggestions_service.cc#newcode157 components/ntp_snippets/content_suggestions_service.cc:157: ? position->url_with_favicon().GetWithEmptyPath() On 2017/04/12 12:50:18, Marc ...
3 years, 8 months ago (2017-04-12 12:58:17 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811123003/60001
3 years, 8 months ago (2017-04-13 05:26:34 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 05:42:14 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/cd011686c4e1fb0b82628b8c08fd...

Powered by Google App Engine
This is Rietveld 408576698