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

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

Issue 2796273002: Display offline availability on ContentSuggestions (Closed)
Patch Set: Add comment Created 3 years, 8 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_suggestion_extra.mm
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestion.mm b/ios/chrome/browser/ui/content_suggestions/content_suggestion_extra.mm
similarity index 50%
copy from ios/chrome/browser/ui/content_suggestions/content_suggestion.mm
copy to ios/chrome/browser/ui/content_suggestions/content_suggestion_extra.mm
index 4def822594a1dc1edcd81c233bb7cf6b48b373e1..e5e1e70ff5f96e010b3059b1b208394d4a6ecd5d 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestion.mm
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestion_extra.mm
@@ -2,23 +2,22 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ios/chrome/browser/ui/content_suggestions/content_suggestion.h"
-
-#include "base/time/time.h"
-#include "url/gurl.h"
+#import "ios/chrome/browser/ui/content_suggestions/content_suggestion_extra.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
-@implementation ContentSuggestion
+@implementation ContentSuggestionReadingListExtra
+
++ (ContentSuggestionReadingListExtra*)extraWithStatus:
+ (ReadingListUIDistillationStatus)status {
+ ContentSuggestionReadingListExtra* extra =
+ [[ContentSuggestionReadingListExtra alloc] init];
+ extra.status = status;
+ return extra;
+}
-@synthesize title = _title;
-@synthesize text = _text;
-@synthesize url = _url;
-@synthesize publisher = _publisher;
-@synthesize publishDate = _publishDate;
-@synthesize suggestionIdentifier = _suggestionIdentifier;
-@synthesize type = _type;
+@synthesize status = _status;
@end

Powered by Google App Engine
This is Rietveld 408576698