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

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

Issue 2697573002: Modify article item in ContentSuggestions (Closed)
Patch Set: Fix tests 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
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
index 68c32ab775c5bb5cb77db29a2829f1acdc8c50f8..14c8198cab1183931c85438c4df266ac764e3098 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm
@@ -16,6 +16,7 @@
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_item.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_stack_item.h"
#import "ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.h"
+#include "url/gurl.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
@@ -68,7 +69,7 @@
ContentSuggestionsFaviconItem* faviconItem =
[[ContentSuggestionsFaviconItem alloc] initWithType:ItemTypeFavicon];
for (NSInteger i = 0; i < 6; i++) {
- [faviconItem addFavicon:[UIImage imageNamed:@"bookmark_gray_star"]
+ [faviconItem addFavicon:[UIImage imageNamed:@"bookmark_gray_star_large"]
withTitle:@"Super website! Incredible!"];
}
faviconItem.delegate = _collectionViewController;
@@ -89,8 +90,8 @@
title:@"Title of an Article"
subtitle:@"This is the subtitle of an article, can "
@"spawn on multiple lines"
- image:[UIImage
- imageNamed:@"distillation_success"]]
+ image:[UIImage imageNamed:@"distillation_success"]
+ url:GURL()]
toSectionWithIdentifier:sectionIdentifier];
// Expandable Item.

Powered by Google App Engine
This is Rietveld 408576698