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

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

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: Rebase Created 3 years, 7 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.mm
diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_bar.mm b/ios/chrome/browser/ui/ntp/new_tab_page_bar.mm
index 760902a83eec023a970b8b6a8d630b6b56e181e6..5cedf9cc21403a6981932f1e899c038cf5253221 100644
--- a/ios/chrome/browser/ui/ntp/new_tab_page_bar.mm
+++ b/ios/chrome/browser/ui/ntp/new_tab_page_bar.mm
@@ -8,7 +8,7 @@
#include <cmath>
#include "base/logging.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "base/mac/scoped_nsobject.h"
#import "ios/chrome/browser/ui/bookmarks/bookmark_utils_ios.h"
#import "ios/chrome/browser/ui/ntp/new_tab_page_bar_button.h"
@@ -66,8 +66,6 @@ const int kNumberOfTabsIncognito = 2;
CGFloat buttonWidth_;
// Percentage overlay sits over tab bar buttons.
CGFloat overlayPercentage_;
-
- base::mac::ObjCPropertyReleaser propertyReleaser_NewTabPageBar_;
}
@synthesize items = items_;
@@ -94,7 +92,6 @@ const int kNumberOfTabsIncognito = 2;
}
- (void)setup {
- propertyReleaser_NewTabPageBar_.Init(self, [NewTabPageBar class]);
self.selectedIndex = NSNotFound;
canAnimate_ = NO;
self.autoresizingMask =
@@ -133,6 +130,11 @@ const int kNumberOfTabsIncognito = 2;
self.contentMode = UIViewContentModeRedraw;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
- (void)layoutSubviews {
[super layoutSubviews];
« no previous file with comments | « ios/chrome/browser/ui/main/browser_view_wrangler.mm ('k') | ios/chrome/browser/ui/ntp/new_tab_page_bar_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698