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

Unified Diff: chrome/browser/ui/cocoa/app_menu/app_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: chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm
diff --git a/chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm b/chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm
index c333a964046237c7926263404a5a89b43f96c863..6670567fce959fe197ef0ff562b7470c45f5478d 100644
--- a/chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/app_menu/app_menu_controller.mm
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/mac/bundle_locations.h"
+#include "base/mac/objc_release_properties.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/metrics/histogram_macros.h"
@@ -601,7 +602,6 @@ class ToolbarActionsBarObserverHelper : public ToolbarActionsBarObserver {
- (id)initWithController:(AppMenuController*)controller {
if ((self = [super initWithNibName:@"AppMenu"
bundle:base::mac::FrameworkBundle()])) {
- propertyReleaser_.Init(self, [AppMenuButtonViewController class]);
controller_ = controller;
[[NSNotificationCenter defaultCenter]
addObserver:self
@@ -614,6 +614,7 @@ class ToolbarActionsBarObserverHelper : public ToolbarActionsBarObserver {
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
+ base::mac::ReleaseProperties(self);
[super dealloc];
}
« no previous file with comments | « chrome/browser/ui/cocoa/app_menu/app_menu_controller.h ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698