| Index: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm
|
| diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm
|
| index 59b694390065a8b77aea1973ca87dbfb53680f04..c1006c6c03ca56ff17a71745bde9e6e806bcc6b2 100644
|
| --- a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm
|
| +++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm
|
| @@ -22,6 +22,7 @@
|
| @synthesize URL = _URL;
|
| @synthesize delegate = _delegate;
|
| @synthesize image = _image;
|
| +@synthesize source = _source;
|
|
|
| - (instancetype)initWithType:(NSInteger)type {
|
| self = [super initWithType:type];
|
| @@ -38,4 +39,15 @@
|
| [cell.faviconView configureWithAttributes:self.attributes];
|
| }
|
|
|
| +- (ntp_tiles::TileVisualType)tileType {
|
| + if (!self.attributes) {
|
| + return ntp_tiles::TileVisualType::NONE;
|
| + } else if (self.attributes.faviconImage) {
|
| + return ntp_tiles::TileVisualType::ICON_REAL;
|
| + }
|
| + return self.attributes.defaultBackgroundColor
|
| + ? ntp_tiles::TileVisualType::ICON_DEFAULT
|
| + : ntp_tiles::TileVisualType::ICON_COLOR;
|
| +}
|
| +
|
| @end
|
|
|