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

Issue 2829963005: [Remote suggestions] Get favicon URLs from archive (Closed)

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

Description

[Remote suggestions] Get favicon URLs from archive Fetching favicons via content suggestions service is currently only enabled for remote suggestions. The general API for getting the URL is via content_suggestion.h which does not work for archived suggestions (i.e. by Fetch More). This CL introduces a quick fix to loop in remote suggestions provider for the favicon URLs of suggestions not known to ContentSuggestionsService. A cleaner fix requires more thinking / refactoring. This is a M59 merge candidate. BUG=714025 Review-Url: https://codereview.chromium.org/2829963005 Cr-Commit-Position: refs/heads/master@{#466653} Committed: https://chromium.googlesource.com/chromium/src/+/8083bc5ed7a1989652884bec28bf775dd198b447

Patch Set 1 #

Patch Set 2 : Fix the unit-test #

Total comments: 6

Patch Set 3 : Tim's comments #

Total comments: 7

Patch Set 4 : Comments #2 #

Total comments: 2

Patch Set 5 : Comments #3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -12 lines) Patch
M components/ntp_snippets/content_suggestion.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M components/ntp_snippets/content_suggestion.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 3 4 3 chunks +26 lines, -10 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_impl.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_scheduler_impl_unittest.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (17 generated)
jkrcal
Tim, could you PTAL? cc to Vitalii who influenced the earlier decision to skip the ...
3 years, 8 months ago (2017-04-21 07:46:09 UTC) #4
tschumann
On 2017/04/21 07:46:09, jkrcal wrote: > Tim, could you PTAL? > > cc to Vitalii ...
3 years, 8 months ago (2017-04-21 07:50:25 UTC) #5
jkrcal
I expanded the bug description (and fixed a unit-test compilation problem).
3 years, 8 months ago (2017-04-21 08:10:47 UTC) #10
tschumann
thanks! https://codereview.chromium.org/2829963005/diff/20001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2829963005/diff/20001/components/ntp_snippets/content_suggestions_service.cc#newcode172 components/ntp_snippets/content_suggestions_service.cc:172: if (position != suggestions->end()) { nit: this is ...
3 years, 8 months ago (2017-04-21 08:27:55 UTC) #11
chromium-reviews
oh yeah, and please add a TODO that this hack should get removed when we ...
3 years, 8 months ago (2017-04-21 08:29:32 UTC) #12
jkrcal
Thanks, Tim! Could you PTAL, again? There already is a TODO to remove this hack. ...
3 years, 8 months ago (2017-04-21 10:57:01 UTC) #15
vitaliii
https://codereview.chromium.org/2829963005/diff/40001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2829963005/diff/40001/components/ntp_snippets/content_suggestions_service.cc#newcode164 components/ntp_snippets/content_suggestions_service.cc:164: const GURL& domain_with_favicon = GetFaviconDomain(suggestion_id); Since we started using ...
3 years, 8 months ago (2017-04-21 11:09:11 UTC) #16
tschumann
https://codereview.chromium.org/2829963005/diff/20001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2829963005/diff/20001/components/ntp_snippets/content_suggestions_service.cc#newcode176 components/ntp_snippets/content_suggestions_service.cc:176: KnownCategories::ARTICLES)) { On 2017/04/21 10:57:00, jkrcal wrote: > On ...
3 years, 8 months ago (2017-04-21 11:23:58 UTC) #17
jkrcal
Thanks, PTAL, again! https://codereview.chromium.org/2829963005/diff/20001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2829963005/diff/20001/components/ntp_snippets/content_suggestions_service.cc#newcode176 components/ntp_snippets/content_suggestions_service.cc:176: KnownCategories::ARTICLES)) { On 2017/04/21 11:23:58, tschumann ...
3 years, 8 months ago (2017-04-21 13:30:55 UTC) #18
jkrcal
On 2017/04/21 13:30:55, jkrcal wrote: > Thanks, PTAL, again! > > https://codereview.chromium.org/2829963005/diff/20001/components/ntp_snippets/content_suggestions_service.cc > File components/ntp_snippets/content_suggestions_service.cc ...
3 years, 8 months ago (2017-04-24 07:27:13 UTC) #19
tschumann
lgtm https://codereview.chromium.org/2829963005/diff/60001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2829963005/diff/60001/components/ntp_snippets/content_suggestions_service.cc#newcode201 components/ntp_snippets/content_suggestions_service.cc:201: static_cast<ContentSuggestionsProvider*>(remote_suggestions_provider_)) { thinking of my comment from Friday, ...
3 years, 8 months ago (2017-04-24 09:29:56 UTC) #20
jkrcal
Thanks! https://codereview.chromium.org/2829963005/diff/60001/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2829963005/diff/60001/components/ntp_snippets/content_suggestions_service.cc#newcode201 components/ntp_snippets/content_suggestions_service.cc:201: static_cast<ContentSuggestionsProvider*>(remote_suggestions_provider_)) { On 2017/04/24 09:29:56, tschumann wrote: > ...
3 years, 8 months ago (2017-04-24 11:16:16 UTC) #22
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/2829963005/80001
3 years, 8 months ago (2017-04-24 14:37:31 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 16:34:19 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/8083bc5ed7a1989652884bec28bf...

Powered by Google App Engine
This is Rietveld 408576698