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/bookmarks/bars/bookmark_top_bar.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/bookmarks/bars/bookmark_top_bar.mm
diff --git a/ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.mm b/ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.mm
index 3aaa4ad404c7641b5a477529877aa8f341340bfa..0e9d252c10026f8f66d6ba47de28fe1e83ce1fcb 100644
--- a/ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.mm
+++ b/ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.mm
@@ -3,12 +3,10 @@
// found in the LICENSE file.
#import "ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "base/mac/scoped_nsobject.h"
-@interface BookmarkTopBar () {
- base::mac::ObjCPropertyReleaser _propertyReleaser_BookmarkBar;
-}
+@interface BookmarkTopBar ()
@property(nonatomic, retain) UIView* contentView;
@end
@@ -23,8 +21,6 @@
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
- _propertyReleaser_BookmarkBar.Init(self, [BookmarkTopBar class]);
-
self.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin |
UIViewAutoresizingFlexibleWidth;
@@ -38,6 +34,11 @@
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
- (void)layoutSubviews {
[super layoutSubviews];

Powered by Google App Engine
This is Rietveld 408576698