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

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

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: weak -> assign Created 3 years, 11 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
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..55e8d77227e55c237fff02199570e21c1c16f3ef 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,19 +4,9 @@
#import "ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.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_;
-}
+@implementation NewTabPageBarItem
@synthesize title = title_;
@synthesize identifier = identifier_;
@@ -35,12 +25,9 @@
return item;
}
-- (id)init {
- self = [super init];
- if (self) {
- propertyReleaser_NewTabPageBarItem_.Init(self, [NewTabPageBarItem class]);
- }
- return self;
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
}
@end

Powered by Google App Engine
This is Rietveld 408576698