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

Unified Diff: ios/chrome/browser/ui/fade_truncated_label.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/fade_truncated_label.mm
diff --git a/ios/chrome/browser/ui/fade_truncated_label.mm b/ios/chrome/browser/ui/fade_truncated_label.mm
index 8aa4d7da478e54673e0707afc929259c1aa844aa..837c23a4b1b992040abb903b714557b0ebdeced3 100644
--- a/ios/chrome/browser/ui/fade_truncated_label.mm
+++ b/ios/chrome/browser/ui/fade_truncated_label.mm
@@ -5,7 +5,7 @@
#import "ios/chrome/browser/ui/fade_truncated_label.h"
#include <algorithm>
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#import "ios/chrome/browser/ui/animation_util.h"
#import "ios/chrome/browser/ui/reversed_animation.h"
#import "ui/gfx/ios/uikit_util.h"
@@ -16,9 +16,7 @@ NSString* const kFadeTruncatedLabelAnimationKey =
@"FadeTruncatedLabelAnimationKey";
}
-@interface FadeTruncatedLabel () {
- base::mac::ObjCPropertyReleaser _propertyReleaser_FadeTruncatedLabel;
-}
+@interface FadeTruncatedLabel ()
// Layer used to apply fade truncation to label.
@property(nonatomic, retain) CAGradientLayer* maskLayer;
@@ -42,9 +40,6 @@ NSString* const kFadeTruncatedLabelAnimationKey =
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
- // Initialize property releaser.
- _propertyReleaser_FadeTruncatedLabel.Init(self, [FadeTruncatedLabel class]);
-
// Set background color and line break mode.
self.backgroundColor = [UIColor clearColor];
self.lineBreakMode = NSLineBreakByClipping;
@@ -60,6 +55,11 @@ NSString* const kFadeTruncatedLabelAnimationKey =
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
#pragma mark - UILabel overrides
- (void)drawTextInRect:(CGRect)rect {

Powered by Google App Engine
This is Rietveld 408576698