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

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

Issue 2881183002: Revert of Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: 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 5cedf9cc21403a6981932f1e899c038cf5253221..760902a83eec023a970b8b6a8d630b6b56e181e6 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_release_properties.h"
+#include "base/mac/objc_property_releaser.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,6 +66,8 @@
CGFloat buttonWidth_;
// Percentage overlay sits over tab bar buttons.
CGFloat overlayPercentage_;
+
+ base::mac::ObjCPropertyReleaser propertyReleaser_NewTabPageBar_;
}
@synthesize items = items_;
@@ -92,6 +94,7 @@
}
- (void)setup {
+ propertyReleaser_NewTabPageBar_.Init(self, [NewTabPageBar class]);
self.selectedIndex = NSNotFound;
canAnimate_ = NO;
self.autoresizingMask =
@@ -128,11 +131,6 @@
[self addSubview:shadow_];
self.contentMode = UIViewContentModeRedraw;
-}
-
-- (void)dealloc {
- base::mac::ReleaseProperties(self);
- [super dealloc];
}
- (void)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