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

Unified Diff: ios/chrome/browser/ui/history/history_search_view.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/history/history_search_view.mm
diff --git a/ios/chrome/browser/ui/history/history_search_view.mm b/ios/chrome/browser/ui/history/history_search_view.mm
index e47818e959ec4c5c39a4916c58ff5732baa01d70..d3324e2b90b9fa20222af12dc112a27c3681f34b 100644
--- a/ios/chrome/browser/ui/history/history_search_view.mm
+++ b/ios/chrome/browser/ui/history/history_search_view.mm
@@ -4,7 +4,7 @@
#import "ios/chrome/browser/ui/history/history_search_view.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "components/strings/grit/components_strings.h"
#include "ios/chrome/browser/ui/uikit_ui_util.h"
#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
@@ -17,9 +17,7 @@ CGFloat kShadowOpacity = 0.2f;
CGFloat kHorizontalMargin = 16.0f;
} // namespace
-@interface HistorySearchView () {
- base::mac::ObjCPropertyReleaser propertyReleaser_HistorySearchView_;
-}
+@interface HistorySearchView ()
// Stack view for laying out the text field and cancel button.
@property(nonatomic, strong) UIStackView* stackView;
@@ -94,12 +92,15 @@ CGFloat kHorizontalMargin = 16.0f;
constraintEqualToAnchor:self.trailingAnchor
constant:-kHorizontalMargin],
]];
-
- propertyReleaser_HistorySearchView_.Init(self, [HistorySearchView class]);
}
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
- (BOOL)becomeFirstResponder {
return [self.textField becomeFirstResponder];
}

Powered by Google App Engine
This is Rietveld 408576698