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

Unified Diff: ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.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/omnibox_popup_material_row.mm
diff --git a/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
index 71f2f216c1bd58017ed22cf9515b6cd31083135d..c8dba117abd7f41fc5ffa27e232549cd626ad326 100644
--- a/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
+++ b/ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.mm
@@ -5,7 +5,7 @@
#import "ios/chrome/browser/ui/omnibox/omnibox_popup_material_row.h"
#include "base/logging.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#import "ios/chrome/browser/ui/omnibox/truncating_attributed_label.h"
#include "ios/chrome/browser/ui/rtl_geometry.h"
#include "ios/chrome/browser/ui/ui_util.h"
@@ -21,7 +21,6 @@ const CGFloat kAppendButtonTrailingMargin = 4;
@interface OmniboxPopupMaterialRow () {
BOOL _incognito;
- base::mac::ObjCPropertyReleaser _propertyReleaser_OmniboxPopupMaterialRow;
}
// Set the append button normal and highlighted images.
@@ -51,9 +50,6 @@ const CGFloat kAppendButtonTrailingMargin = 4;
self.isAccessibilityElement = YES;
self.backgroundColor = [UIColor clearColor];
_incognito = incognito;
- _propertyReleaser_OmniboxPopupMaterialRow.Init(
- self, [OmniboxPopupMaterialRow class]);
-
_textTruncatingLabel =
[[OmniboxPopupTruncatingLabel alloc] initWithFrame:CGRectZero];
_textTruncatingLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
@@ -97,6 +93,11 @@ const CGFloat kAppendButtonTrailingMargin = 4;
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
- (void)layoutSubviews {
[super layoutSubviews];
[self layoutAccessoryViews];

Powered by Google App Engine
This is Rietveld 408576698