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

Unified Diff: ios/chrome/browser/content_suggestions/mediator_util.h

Issue 2888533002: Identify MostVisited by item instead of URL (Closed)
Patch Set: Address comments Created 3 years, 7 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: ios/chrome/browser/content_suggestions/mediator_util.h
diff --git a/ios/chrome/browser/content_suggestions/mediator_util.h b/ios/chrome/browser/content_suggestions/mediator_util.h
index 9e06bfa673b02f0374c2dbaaf3fcd53b5f8327c7..aef64325f04a4f58268411bec26132c4643d894a 100644
--- a/ios/chrome/browser/content_suggestions/mediator_util.h
+++ b/ios/chrome/browser/content_suggestions/mediator_util.h
@@ -20,6 +20,7 @@ class Category;
@class CollectionViewItem;
@class ContentSuggestionsCategoryWrapper;
+@class ContentSuggestionsMostVisitedItem;
// TODO(crbug.com/701275): Once base::BindBlock supports the move semantics,
// remove this wrapper.
@@ -59,9 +60,9 @@ ContentSuggestionsSectionInformation* MostVisitedSectionInformation();
// Records the page impression of the ntp tiles.
void RecordPageImpression(const std::vector<ntp_tiles::NTPTile>& mostVisited);
-// Converts a ntp_snippets::ContentSuggestion to an adapted CollectionViewItem
+// Converts a ntp_tiles::NTPTile |tile| to a ContentSuggestionsMostVisitedItem
// with a |sectionInfo|.
-CollectionViewItem<SuggestedContent>* ConvertNTPTile(
+ContentSuggestionsMostVisitedItem* ConvertNTPTile(
const ntp_tiles::NTPTile& tile,
ContentSuggestionsSectionInformation* sectionInfo);

Powered by Google App Engine
This is Rietveld 408576698