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

Unified Diff: ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm

Issue 2865183003: Use the same design for all suggestions (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/content_suggestions_mediator.mm
diff --git a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
index 6a83d8f74f1aece6a03afe4b61cbda015bf984a0..cbd7a4e0e484ff274d5a7c398400dab2319608df 100644
--- a/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
+++ b/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm
@@ -11,7 +11,6 @@
#include "components/ntp_snippets/category.h"
#include "components/ntp_snippets/category_info.h"
#include "components/ntp_snippets/content_suggestion.h"
-#include "components/ntp_snippets/reading_list/reading_list_distillation_state_util.h"
#include "components/ntp_tiles/most_visited_sites.h"
#include "components/ntp_tiles/ntp_tile.h"
#import "ios/chrome/browser/content_suggestions/content_suggestions_category_wrapper.h"
@@ -371,13 +370,8 @@ initWithContentService:(ntp_snippets::ContentSuggestionsService*)contentService
self.sectionInformationByCategory[categoryWrapper];
if (category.IsKnownCategory(ntp_snippets::KnownCategories::READING_LIST)) {
- ReadingListUIDistillationStatus status =
- reading_list::UIStatusFromModelStatus(
- ReadingListStateFromSuggestionState(
- contentSuggestion.reading_list_suggestion_extra()
- ->distilled_state));
- suggestion.readingListExtra = [ContentSuggestionReadingListExtra
- extraWithDistillationStatus:status];
+ suggestion.availableOffline =
+ contentSuggestion.reading_list_suggestion_extra()->distilled;
}
[contentArray addObject:suggestion];

Powered by Google App Engine
This is Rietveld 408576698