| 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];
|
|
|