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

Issue 2421463002: FetchMore functionality backend (Closed)

Created:
4 years, 2 months ago by fhorschig
Modified:
4 years, 1 month ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The ContentSuggestionService now provides a |FetchMore| method that asks any provider to provide more content for the chosen category. There is an implementation for the NtpSnippetsService. Changes integrated into and landed here: https://codereview.chromium.org/2473483006 BUG=634892

Patch Set 1 : Strategy pattern to handle differences in fetching procedure. #

Total comments: 22

Patch Set 2 : Introduced callback, removed strategy. #

Total comments: 65

Patch Set 3 : NTBR. Rebasing a lot. #

Total comments: 40

Patch Set 4 : Added changes from CLs 2446163005 and 2466863003. #

Patch Set 5 : ID set reference, Optional callback, ... (2466863003 comments). #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -106 lines) Patch
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_provider.h View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 2 3 4 3 chunks +11 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 1 comment Download
M components/ntp_snippets/remote/ntp_snippets_fetcher.h View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher.cc View 1 2 3 4 5 chunks +27 lines, -7 lines 2 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc View 1 2 3 4 14 chunks +84 lines, -17 lines 3 comments Download
M components/ntp_snippets/remote/ntp_snippets_service.h View 1 2 3 4 7 chunks +39 lines, -3 lines 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_service.cc View 1 2 3 4 9 chunks +171 lines, -72 lines 4 comments Download
M components/ntp_snippets/remote/ntp_snippets_service_unittest.cc View 1 2 3 4 4 chunks +72 lines, -1 line 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
fhorschig
Hi Marc, would you please have a look into the first steps of the FetchMore ...
4 years, 2 months ago (2016-10-17 15:36:09 UTC) #6
Marc Treib
First round of comments below. Apart from that, there's one major product question which AFAIK ...
4 years, 2 months ago (2016-10-18 08:17:45 UTC) #7
fhorschig
Thank you for the comments! Could you please have another look and confirm/reject my idea? ...
4 years, 2 months ago (2016-10-20 13:10:39 UTC) #9
Marc Treib
Bunch more comments, and kinda-product questions :) https://codereview.chromium.org/2421463002/diff/80001/components/ntp_snippets/remote/ntp_snippets_fetcher.h File components/ntp_snippets/remote/ntp_snippets_fetcher.h (right): https://codereview.chromium.org/2421463002/diff/80001/components/ntp_snippets/remote/ntp_snippets_fetcher.h#newcode68 components/ntp_snippets/remote/ntp_snippets_fetcher.h:68: base::OnceCallback<void(OptionalFetchedCategories fetched_categories)>; ...
4 years, 2 months ago (2016-10-20 16:51:40 UTC) #10
tschumann
overall, I like the direction. Some drive-by comments as this discussion uncovers some design issues. ...
4 years, 2 months ago (2016-10-24 06:38:25 UTC) #11
Marc Treib
https://codereview.chromium.org/2421463002/diff/120001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc File components/ntp_snippets/remote/ntp_snippets_fetcher.cc (left): https://codereview.chromium.org/2421463002/diff/120001/components/ntp_snippets/remote/ntp_snippets_fetcher.cc#oldcode319 components/ntp_snippets/remote/ntp_snippets_fetcher.cc:319: void NTPSnippetsFetcher::SetCallback( On 2016/10/24 06:38:25, tschumann wrote: > it's ...
4 years, 2 months ago (2016-10-24 09:47:40 UTC) #12
Marc Treib
Most comments addressed (in https://codereview.chromium.org/2446163005/#ps60001) https://codereview.chromium.org/2421463002/diff/80001/components/ntp_snippets/remote/ntp_snippets_fetcher.h File components/ntp_snippets/remote/ntp_snippets_fetcher.h (right): https://codereview.chromium.org/2421463002/diff/80001/components/ntp_snippets/remote/ntp_snippets_fetcher.h#newcode68 components/ntp_snippets/remote/ntp_snippets_fetcher.h:68: base::OnceCallback<void(OptionalFetchedCategories fetched_categories)>; On 2016/10/20 ...
4 years, 1 month ago (2016-10-28 14:49:50 UTC) #13
vitaliii
If you are unsure about some of my comments, feel free to ignore or to ...
4 years, 1 month ago (2016-11-01 23:29:58 UTC) #15
fhorschig
Rebased CL so that it doesn't break any new tests but can still be used ...
4 years, 1 month ago (2016-11-02 05:05:28 UTC) #16
tschumann
lgtm adding a few comments to keep track no follow-ups I'll do after this CL ...
4 years, 1 month ago (2016-11-03 09:20:58 UTC) #20
dgn
https://codereview.chromium.org/2421463002/diff/220001/components/ntp_snippets/remote/ntp_snippets_service.cc File components/ntp_snippets/remote/ntp_snippets_service.cc (right): https://codereview.chromium.org/2421463002/diff/220001/components/ntp_snippets/remote/ntp_snippets_service.cc#newcode1080 components/ntp_snippets/remote/ntp_snippets_service.cc:1080: ConvertToContentSuggestions(category, content.snippets); On 2016/11/03 09:20:58, tschumann wrote: > i ...
4 years, 1 month ago (2016-11-03 10:28:04 UTC) #22
tschumann
https://codereview.chromium.org/2421463002/diff/220001/components/ntp_snippets/remote/ntp_snippets_service.cc File components/ntp_snippets/remote/ntp_snippets_service.cc (right): https://codereview.chromium.org/2421463002/diff/220001/components/ntp_snippets/remote/ntp_snippets_service.cc#newcode1080 components/ntp_snippets/remote/ntp_snippets_service.cc:1080: ConvertToContentSuggestions(category, content.snippets); On 2016/11/03 10:28:04, dgn wrote: > On ...
4 years, 1 month ago (2016-11-03 10:35:06 UTC) #23
tschumann
4 years, 1 month ago (2016-11-03 13:24:14 UTC) #24
I just submitted https://codereview.chromium.org/2473483006/ which makes this CL
unnecessary. Please delete at your convenience (also, feel free to double-check
my CL didn't miss anything).

Powered by Google App Engine
This is Rietveld 408576698