| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_mos
t_visited.h" | |
| 6 | |
| 7 #import "ios/chrome/browser/ui/favicon/favicon_attributes.h" | |
| 8 | |
| 9 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
| 10 #error "This file requires ARC support." | |
| 11 #endif | |
| 12 | |
| 13 @implementation ContentSuggestionsMostVisited | |
| 14 | |
| 15 @synthesize title = _title; | |
| 16 @synthesize attributes = _attributes; | |
| 17 | |
| 18 + (ContentSuggestionsMostVisited*)mostVisitedWithTitle:(NSString*)title | |
| 19 attributes: | |
| 20 (FaviconAttributes*)attributes { | |
| 21 ContentSuggestionsMostVisited* mostVisited = | |
| 22 [[ContentSuggestionsMostVisited alloc] init]; | |
| 23 mostVisited.title = title; | |
| 24 mostVisited.attributes = attributes; | |
| 25 return mostVisited; | |
| 26 } | |
| 27 | |
| 28 @end | |
| OLD | NEW |