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

Unified Diff: components/ntp_snippets/reading_list/reading_list_suggestions_provider.h

Issue 2780793002: Add extra information for ReadingList ContentSuggestion (Closed)
Patch Set: Add comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
diff --git a/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h b/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
index fcb1c5e0f734d855410cfffba8e4ecdd368ae55f..e0b13020e08d339eda1a29ccf655f231ae195918 100644
--- a/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
+++ b/components/ntp_snippets/reading_list/reading_list_suggestions_provider.h
@@ -56,6 +56,10 @@ class ReadingListSuggestionsProvider : public ContentSuggestionsProvider,
// model is loaded.
void FetchReadingListInternal();
+ // Converts |entry| to ContentSuggestion and add it to |suggestions|.
Olivier 2017/03/28 13:43:46 nit: The main goal of the method is to add the ent
gambard 2017/03/29 06:51:24 Done.
+ void ConvertEntry(const ReadingListEntry* entry,
Olivier 2017/03/28 13:43:46 const & ?
gambard 2017/03/29 06:51:24 I have a pointer (returned by the Reading List mod
Marc Treib 2017/03/29 08:24:58 But you can still pass a reference here, to make c
+ std::vector<ContentSuggestion>* suggestions);
+
// Updates the |category_status_| and notifies the |observer_|, if necessary.
void NotifyStatusChanged(CategoryStatus new_status);
CategoryStatus category_status_;

Powered by Google App Engine
This is Rietveld 408576698