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

Unified Diff: ios/chrome/browser/ui/omnibox/truncating_attributed_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/omnibox/truncating_attributed_label.mm
diff --git a/ios/chrome/browser/ui/omnibox/truncating_attributed_label.mm b/ios/chrome/browser/ui/omnibox/truncating_attributed_label.mm
index c4a13e49895e5c9e4f4fb2d622700fc8b1bbc867..f1b72d7d4856a6aff4e525cc6e646b91545e68c0 100644
--- a/ios/chrome/browser/ui/omnibox/truncating_attributed_label.mm
+++ b/ios/chrome/browser/ui/omnibox/truncating_attributed_label.mm
@@ -6,7 +6,7 @@
#include <algorithm>
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "base/mac/scoped_cftyperef.h"
@interface OmniboxPopupTruncatingLabel ()
@@ -19,8 +19,6 @@
base::scoped_nsobject<CATextLayer> textLayer_;
// Gradient used to create fade effect. Changes based on view.frame size.
base::scoped_nsobject<UIImage> gradient_;
-
- base::mac::ObjCPropertyReleaser propertyReleaser_OmniboxPopupTruncatingLabel_;
}
@synthesize truncateMode = truncateMode_;
@@ -46,8 +44,6 @@
- (id)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
- propertyReleaser_OmniboxPopupTruncatingLabel_.Init(
- self, [OmniboxPopupTruncatingLabel class]);
[self setup];
}
return self;
@@ -58,6 +54,11 @@
[self setup];
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
- (void)setFrame:(CGRect)frame {
[super setFrame:frame];
[textLayer_ setFrame:self.bounds];

Powered by Google App Engine
This is Rietveld 408576698