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

Unified Diff: ios/chrome/browser/ui/favicon_view.mm

Issue 2567203002: Revert of [ObjC ARC] Converts ios/chrome/browser/ui:ui to ARC. (Closed)
Patch Set: Created 4 years 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/browser_otr_state.mm ('k') | ios/chrome/browser/ui/file_locations.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/favicon_view.mm
diff --git a/ios/chrome/browser/ui/favicon_view.mm b/ios/chrome/browser/ui/favicon_view.mm
index a8de21f21cceb5e63e3d2f3135c43c0f58479c98..498792366b94781e1866dbd58ff2a5fbdbd69e24 100644
--- a/ios/chrome/browser/ui/favicon_view.mm
+++ b/ios/chrome/browser/ui/favicon_view.mm
@@ -4,11 +4,8 @@
#import "ios/chrome/browser/ui/favicon_view.h"
+#include "base/mac/objc_property_releaser.h"
#import "ios/chrome/browser/ui/uikit_ui_util.h"
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
namespace {
// Default corner radius for the favicon image view.
@@ -17,12 +14,13 @@
@interface FaviconViewNew () {
// Property releaser for FaviconViewNew.
+ base::mac::ObjCPropertyReleaser _propertyReleaser_FaviconViewNew;
}
// Image view for the favicon.
-@property(nonatomic, strong) UIImageView* faviconImageView;
+@property(nonatomic, retain) UIImageView* faviconImageView;
// Label for fallback favicon placeholder.
-@property(nonatomic, strong) UILabel* faviconFallbackLabel;
+@property(nonatomic, retain) UILabel* faviconFallbackLabel;
@end
@@ -33,6 +31,7 @@
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
+ _propertyReleaser_FaviconViewNew.Init(self, [FaviconViewNew class]);
_faviconImageView = [[UIImageView alloc] initWithFrame:self.bounds];
_faviconImageView.clipsToBounds = YES;
_faviconImageView.layer.cornerRadius = kDefaultCornerRadius;
« no previous file with comments | « ios/chrome/browser/ui/browser_otr_state.mm ('k') | ios/chrome/browser/ui/file_locations.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698