| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import "ios/chrome/browser/ui/content_suggestions/content_suggestion.h" | 5 #import "ios/chrome/browser/ui/content_suggestions/content_suggestion_extra.h" |
| 6 | |
| 7 #include "base/time/time.h" | |
| 8 #include "url/gurl.h" | |
| 9 | 6 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) | 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 11 #error "This file requires ARC support." | 8 #error "This file requires ARC support." |
| 12 #endif | 9 #endif |
| 13 | 10 |
| 14 @implementation ContentSuggestion | 11 @implementation ContentSuggestionReadingListExtra |
| 15 | 12 |
| 16 @synthesize title = _title; | 13 + (ContentSuggestionReadingListExtra*)extraWithStatus: |
| 17 @synthesize text = _text; | 14 (ReadingListUIDistillationStatus)status { |
| 18 @synthesize url = _url; | 15 ContentSuggestionReadingListExtra* extra = |
| 19 @synthesize publisher = _publisher; | 16 [[ContentSuggestionReadingListExtra alloc] init]; |
| 20 @synthesize publishDate = _publishDate; | 17 extra.status = status; |
| 21 @synthesize suggestionIdentifier = _suggestionIdentifier; | 18 return extra; |
| 22 @synthesize type = _type; | 19 } |
| 20 |
| 21 @synthesize status = _status; |
| 23 | 22 |
| 24 @end | 23 @end |
| OLD | NEW |