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

Unified Diff: ios/chrome/browser/passwords/update_password_infobar_controller.mm

Issue 2881183002: Revert of Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: 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 | « ios/chrome/app/main_controller.mm ('k') | ios/chrome/browser/snapshots/snapshot_cache.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/passwords/update_password_infobar_controller.mm
diff --git a/ios/chrome/browser/passwords/update_password_infobar_controller.mm b/ios/chrome/browser/passwords/update_password_infobar_controller.mm
index 22d6a4457a41ae2e416aafa78e9deefaf3bc9fb8..656b3bb2f88bf4630890b2e793e8359657edceeb 100644
--- a/ios/chrome/browser/passwords/update_password_infobar_controller.mm
+++ b/ios/chrome/browser/passwords/update_password_infobar_controller.mm
@@ -4,7 +4,7 @@
#import "ios/chrome/browser/passwords/update_password_infobar_controller.h"
-#include "base/mac/objc_release_properties.h"
+#import "base/mac/objc_property_releaser.h"
#include "base/strings/string_util.h"
#include "base/strings/sys_string_conversions.h"
#include "ios/chrome/browser/infobars/confirm_infobar_controller+protected.h"
@@ -19,6 +19,8 @@
}
@interface UpdatePasswordInfoBarController ()<SelectorCoordinatorDelegate> {
+ base::mac::ObjCPropertyReleaser
+ _propertyReleaser_UpdatePasswordInfoBarController;
IOSChromeUpdatePasswordInfoBarDelegate* _delegate;
}
@property(nonatomic, retain) SelectorCoordinator* selectorCoordinator;
@@ -28,9 +30,13 @@
@synthesize selectorCoordinator = _selectorCoordinator;
-- (void)dealloc {
- base::mac::ReleaseProperties(self);
- [super dealloc];
+- (instancetype)initWithDelegate:(InfoBarViewDelegate*)delegate {
+ self = [super initWithDelegate:delegate];
+ if (self) {
+ _propertyReleaser_UpdatePasswordInfoBarController.Init(
+ self, [UpdatePasswordInfoBarController class]);
+ }
+ return self;
}
- (InfoBarView*)viewForDelegate:
« no previous file with comments | « ios/chrome/app/main_controller.mm ('k') | ios/chrome/browser/snapshots/snapshot_cache.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698