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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm

Issue 2697843003: Display articles in Content Suggestions (Closed)
Patch Set: Address comments Created 3 years, 10 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
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
index 4ed54b7668c9f967bf4ae9311a0d3538b7e7e8f2..276c6f47f47b9997930842b6cf693fdc4261cca2 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm
@@ -71,15 +71,10 @@ const NSTimeInterval kAnimationDuration = 0.35;
CollectionViewItem* item =
[self.collectionViewModel itemAtIndexPath:indexPath];
- switch (item.type) {
- case ItemTypeStack:
- [self.suggestionCommandHandler openReadingList];
- break;
- case ItemTypeArticle:
+ switch ([self.collectionUpdater contentSuggestionTypeForItem:item]) {
+ case ContentSuggestionTypeArticle:
[self openArticle:item];
break;
- default:
- break;
}
}
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698