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