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

Unified Diff: ios/chrome/browser/ui/popup_menu/popup_menu_controller.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
Index: ios/chrome/browser/ui/popup_menu/popup_menu_controller.mm
diff --git a/ios/chrome/browser/ui/popup_menu/popup_menu_controller.mm b/ios/chrome/browser/ui/popup_menu/popup_menu_controller.mm
index 67844336d01c4c046bc9a25e4611011b1cfdf012..5d528dfaf144bcc299db22da8a9180bf29a8df28 100644
--- a/ios/chrome/browser/ui/popup_menu/popup_menu_controller.mm
+++ b/ios/chrome/browser/ui/popup_menu/popup_menu_controller.mm
@@ -7,7 +7,7 @@
#import "base/ios/weak_nsobject.h"
#include "base/logging.h"
#include "base/mac/bundle_locations.h"
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#import "ios/chrome/browser/ui/animation_util.h"
#import "ios/chrome/browser/ui/popup_menu/popup_menu_view.h"
#include "ios/chrome/browser/ui/rtl_geometry.h"
@@ -55,7 +55,6 @@ static CGPoint AnimateInIntermediaryPoint(CGPoint source, CGPoint destination) {
} // anonymous namespace
@interface PopupMenuController ()<PopupMenuViewDelegate> {
- base::mac::ObjCPropertyReleaser propertyReleaser_PopupMenuController_;
CGPoint sourceAnimationPoint_;
}
@end
@@ -85,9 +84,6 @@ static CGPoint AnimateInIntermediaryPoint(CGPoint source, CGPoint destination) {
DCHECK(parent);
self = [super init];
if (self) {
- propertyReleaser_PopupMenuController_.Init(self,
- [PopupMenuController class]);
-
popupContainer_ = [[PopupMenuView alloc]
initWithFrame:CGRectMake(0, 0, kPopupContainerWidth,
kPopupContainerHeight)];
@@ -176,6 +172,7 @@ static CGPoint AnimateInIntermediaryPoint(CGPoint source, CGPoint destination) {
[popupContainer_ removeFromSuperview];
[backgroundButton_ removeFromSuperview];
[containerView_ removeFromSuperview];
+ base::mac::ReleaseProperties(self);
[super dealloc];
}

Powered by Google App Engine
This is Rietveld 408576698