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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm ('k') | components/handoff/handoff_manager.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 11b5a576b9d5aa2c5e34bc51df7a5af5895371c0..e40679796a3167b3efd1c4f07c486526ff8b26c3 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
@@ -11,7 +11,7 @@
#include "base/i18n/rtl.h"
#include "base/mac/foundation_util.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "base/mac/scoped_nsobject.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
@@ -343,11 +343,6 @@ NSAttributedString* CreateClassifiedAttributedString(
} // namespace
-@interface OmniboxPopupCellData () {
- base::mac::ObjCPropertyReleaser propertyReleaser_OmniboxPopupCellData_;
-}
-@end
-
@interface OmniboxPopupCell ()
- (CGFloat)drawMatchPart:(NSAttributedString*)attributedString
withFrame:(NSRect)cellFrame
@@ -418,12 +413,15 @@ NSAttributedString* CreateClassifiedAttributedString(
}
maxLines_ = 1;
}
- propertyReleaser_OmniboxPopupCellData_.Init(self,
- [OmniboxPopupCellData class]);
}
return self;
}
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
+}
+
- (instancetype)copyWithZone:(NSZone*)zone {
return [self retain];
}
« no previous file with comments | « chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm ('k') | components/handoff/handoff_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698