| 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 e7d3eda6a3f4b1a9f1b1842eb5acc7b40af62080..4de8d7d377a00655cdf9cf34dfb77ace36346312 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
|
| @@ -28,7 +28,6 @@
|
| #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion_identifier.h"
|
| #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| -#include "ui/gfx/image/image.h"
|
| #include "url/gurl.h"
|
|
|
| #if !defined(__has_feature) || !__has_feature(objc_arc)
|
| @@ -352,18 +351,15 @@ SectionIdentifier SectionIdentifierForInfo(
|
|
|
| __weak ContentSuggestionsCollectionUpdater* weakSelf = self;
|
| __weak ContentSuggestionsArticleItem* weakArticle = articleItem;
|
| - void (^imageFetchedCallback)(const gfx::Image&) = ^(const gfx::Image& image) {
|
| - if (image.IsEmpty()) {
|
| - return;
|
| - }
|
|
|
| + void (^imageFetchedCallback)(UIImage*) = ^(UIImage* image) {
|
| ContentSuggestionsCollectionUpdater* strongSelf = weakSelf;
|
| ContentSuggestionsArticleItem* strongArticle = weakArticle;
|
| if (!strongSelf || !strongArticle) {
|
| return;
|
| }
|
|
|
| - strongArticle.image = image.CopyUIImage();
|
| + strongArticle.image = image;
|
| [strongSelf.collectionViewController
|
| reconfigureCellsForItems:@[ strongArticle ]
|
| inSectionWithIdentifier:sectionIdentifier];
|
|
|