| 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 #include "url/gurl.h" |
| 9 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 11 #error "This file requires ARC support." |
| 12 #endif |
| 13 |
| 14 @implementation ContentSuggestionsMostVisited |
| 15 |
| 16 @synthesize url = _url; |
| 17 @synthesize title = _title; |
| 18 @synthesize attributes = _attributes; |
| 19 |
| 20 + (ContentSuggestionsMostVisited*)mostVisitedWithURL:(const GURL&)URL |
| 21 title:(NSString*)title |
| 22 attributes: |
| 23 (FaviconAttributes*)attributes { |
| 24 ContentSuggestionsMostVisited* mostVisited = |
| 25 [[ContentSuggestionsMostVisited alloc] init]; |
| 26 mostVisited.url = URL; |
| 27 mostVisited.title = title; |
| 28 mostVisited.attributes = attributes; |
| 29 return mostVisited; |
| 30 } |
| 31 |
| 32 @end |
| OLD | NEW |