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

Unified Diff: ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.mm

Issue 2677443002: [ObjC ARC] Converts ios/chrome/browser/ui/bookmarks/bars:bars to ARC. (Closed)
Patch Set: I'm dumb Created 3 years, 8 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
« no previous file with comments | « ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7102d54053902f93e65410d2362955142c052153 100644
--- a/ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.mm
+++ b/ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.mm
@@ -3,14 +3,9 @@
// 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/scoped_nsobject.h"
-
-@interface BookmarkTopBar () {
- base::mac::ObjCPropertyReleaser _propertyReleaser_BookmarkBar;
-}
-@property(nonatomic, retain) UIView* contentView;
-@end
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
@implementation BookmarkTopBar
@@ -23,15 +18,11 @@
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
- _propertyReleaser_BookmarkBar.Init(self, [BookmarkTopBar class]);
-
self.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin |
UIViewAutoresizingFlexibleWidth;
- base::scoped_nsobject<UIView> contentView([[UIView alloc] init]);
- self.contentView.backgroundColor = [UIColor clearColor];
- [self addSubview:contentView];
- self.contentView = contentView;
+ _contentView = [[UIView alloc] init];
+ [self addSubview:_contentView];
[self statelessLayoutContentView];
}
« no previous file with comments | « ios/chrome/browser/ui/bookmarks/bars/bookmark_top_bar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698