| Index: ios/chrome/browser/ui/ntp/new_tab_page_bar_button.mm
|
| diff --git a/ios/chrome/browser/ui/ntp/new_tab_page_bar_button.mm b/ios/chrome/browser/ui/ntp/new_tab_page_bar_button.mm
|
| index 91580eee51861a286585c8d684c538cea67f8275..21adf1b11c0a857460902bc90e6837eacae6210e 100644
|
| --- a/ios/chrome/browser/ui/ntp/new_tab_page_bar_button.mm
|
| +++ b/ios/chrome/browser/ui/ntp/new_tab_page_bar_button.mm
|
| @@ -5,7 +5,7 @@
|
| #import "ios/chrome/browser/ui/ntp/new_tab_page_bar_button.h"
|
|
|
| #include "base/logging.h"
|
| -#include "base/mac/objc_property_releaser.h"
|
| +#include "base/mac/objc_release_properties.h"
|
| #import "ios/chrome/browser/ui/ntp/new_tab_page_bar_item.h"
|
| #import "ios/chrome/browser/ui/uikit_ui_util.h"
|
| #import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
|
| @@ -17,18 +17,7 @@ const int kButtonSelectedColor = 0x4285F4;
|
|
|
| } // anonymous namespace
|
|
|
| -@interface NewTabPageBarButton () {
|
| - UIColor* _color;
|
| - UIColor* _selectedColor;
|
| - UIColor* _incognitoColor;
|
| - UIColor* _incognitoSelectedColor;
|
| - UIColor* _interpolatedColor;
|
| - UIColor* _interpolatedSelectedColor;
|
| -
|
| - UIImage* _image;
|
| - NSString* _title;
|
| - base::mac::ObjCPropertyReleaser _propertyReleaser_NewTabPageBarButton;
|
| -}
|
| +@interface NewTabPageBarButton ()
|
|
|
| @property(nonatomic, retain) UIColor* color;
|
| @property(nonatomic, retain) UIColor* selectedColor;
|
| @@ -62,8 +51,6 @@ const int kButtonSelectedColor = 0x4285F4;
|
| DCHECK(item.image);
|
| NewTabPageBarButton* button =
|
| [[self class] buttonWithType:UIButtonTypeCustom];
|
| - button->_propertyReleaser_NewTabPageBarButton.Init(
|
| - button, [NewTabPageBarButton class]);
|
|
|
| button.title = item.title;
|
| button.image =
|
| @@ -85,6 +72,11 @@ const int kButtonSelectedColor = 0x4285F4;
|
| return button;
|
| }
|
|
|
| +- (void)dealloc {
|
| + base::mac::ReleaseProperties(self);
|
| + [super dealloc];
|
| +}
|
| +
|
| - (void)useIncognitoColorScheme:(CGFloat)percentage {
|
| DCHECK(percentage >= 0 && percentage <= 1);
|
| self.interpolatedColor =
|
|
|