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

Unified Diff: ios/chrome/browser/ui/ntp/most_visited_layout.mm

Issue 2955363002: [ObjC ARC] Converts ios/chrome/browser/ui/ntp:ntp_internal to ARC. (Closed)
Patch Set: rebase Created 3 years, 5 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
« no previous file with comments | « ios/chrome/browser/ui/ntp/most_visited_cell.mm ('k') | ios/chrome/browser/ui/ntp/new_tab_page_bar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/ntp/most_visited_layout.mm
diff --git a/ios/chrome/browser/ui/ntp/most_visited_layout.mm b/ios/chrome/browser/ui/ntp/most_visited_layout.mm
index bd0cdfcf3f3715f35c9a1b0bb6da14d578a79208..e77de3c23d3974b20a0d7da14a93ea6219eac062 100644
--- a/ios/chrome/browser/ui/ntp/most_visited_layout.mm
+++ b/ios/chrome/browser/ui/ntp/most_visited_layout.mm
@@ -7,11 +7,15 @@
#import "ios/chrome/browser/ui/ntp/new_tab_page_header_constants.h"
#include "ios/chrome/browser/ui/ui_util.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@implementation MostVisitedLayout
- (NSArray*)layoutAttributesForElementsInRect:(CGRect)rect {
- NSMutableArray* layoutAttributes = [
- [[super layoutAttributesForElementsInRect:rect] mutableCopy] autorelease];
+ NSMutableArray* layoutAttributes =
+ [[super layoutAttributesForElementsInRect:rect] mutableCopy];
UICollectionViewLayoutAttributes* fixedHeaderAttributes = nil;
NSIndexPath* fixedHeaderIndexPath =
[NSIndexPath indexPathForItem:0 inSection:0];
« no previous file with comments | « ios/chrome/browser/ui/ntp/most_visited_cell.mm ('k') | ios/chrome/browser/ui/ntp/new_tab_page_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698