Chromium Code Reviews| Index: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm |
| diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm |
| index 4d7bbcc7170325491929fd05950320949c5e943e..0d224d644de8955361cd0163bc277419b38ef02e 100644 |
| --- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm |
| +++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm |
| @@ -11,6 +11,7 @@ |
| #include "base/i18n/rtl.h" |
| #include "base/mac/foundation_util.h" |
| +#include "base/mac/objc_property_releaser.h" |
| #include "base/mac/scoped_nsobject.h" |
| #include "base/strings/string_number_conversions.h" |
| #include "base/strings/string_util.h" |
| @@ -395,6 +396,12 @@ NSAttributedString* CreateClassifiedAttributedString( |
| } // namespace |
| +@interface OmniboxPopupCellData () { |
| + @private |
|
Robert Sesek
2016/08/11 19:05:35
@private not necessary here, but harmless
erikchen
2016/08/11 19:17:12
Done.
|
| + base::mac::ObjCPropertyReleaser propertyReleaser_OmniboxPopupCellData_; |
| +} |
| +@end |
| + |
| @interface OmniboxPopupCell () |
| - (CGFloat)drawMatchPart:(NSAttributedString*)attributedString |
| withFrame:(NSRect)cellFrame |
| @@ -465,15 +472,12 @@ NSAttributedString* CreateClassifiedAttributedString( |
| } |
| maxLines_ = 1; |
| } |
| + propertyReleaser_OmniboxPopupCellData_.Init(self, |
| + [OmniboxPopupCellData class]); |
| } |
| return self; |
| } |
| -- (void)dealloc { |
| - [incognitoImage_ release]; |
| - [super dealloc]; |
| -} |
| - |
| - (instancetype)copyWithZone:(NSZone*)zone { |
| return [self retain]; |
| } |