Index: ios/chrome/browser/ui/ntp/new_tab_page_bar_item.mm |
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_bar_item.mm b/ios/chrome/browser/ui/ntp/new_tab_page_bar_item.mm |
index 915497f33e479743945e6ee18258c2780cc13507..d61956e124699f58e0e1f57d79d479ae9c091e95 100644 |
--- a/ios/chrome/browser/ui/ntp/new_tab_page_bar_item.mm |
+++ b/ios/chrome/browser/ui/ntp/new_tab_page_bar_item.mm |
@@ -4,20 +4,11 @@ |
#import "ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h" |
-#include "base/mac/objc_property_releaser.h" |
- |
-@implementation NewTabPageBarItem { |
- // Title of the button. |
- NSString* title_; |
- // A numeric identifier. |
- NSUInteger identifier_; |
- // Tabbar image. |
- UIImage* image_; |
- // New tab page view. |
- __unsafe_unretained UIView* view_; // weak |
- base::mac::ObjCPropertyReleaser propertyReleaser_NewTabPageBarItem_; |
-} |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+@implementation NewTabPageBarItem |
@synthesize title = title_; |
@synthesize identifier = identifier_; |
@synthesize image = image_; |
@@ -26,7 +17,7 @@ |
+ (NewTabPageBarItem*)newTabPageBarItemWithTitle:(NSString*)title |
identifier:(NSUInteger)identifier |
image:(UIImage*)image { |
- NewTabPageBarItem* item = [[[NewTabPageBarItem alloc] init] autorelease]; |
+ NewTabPageBarItem* item = [[NewTabPageBarItem alloc] init]; |
if (item) { |
item.title = title; |
item.identifier = identifier; |
@@ -35,12 +26,4 @@ |
return item; |
} |
-- (id)init { |
- self = [super init]; |
- if (self) { |
- propertyReleaser_NewTabPageBarItem_.Init(self, [NewTabPageBarItem class]); |
- } |
- return self; |
-} |
- |
@end |