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

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

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: weak -> assign Created 3 years, 11 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/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 e48c6a52697e9558ac9644ec791843b9921fbff6..67c55550cda0880185804cbbc5ea3a3be24b193b 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"
-#import "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.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,8 +19,6 @@ NSUInteger kAccountTag = 10;
}
@interface UpdatePasswordInfoBarController ()<SelectorCoordinatorDelegate> {
- base::mac::ObjCPropertyReleaser
- _propertyReleaser_UpdatePasswordInfoBarController;
IOSChromeUpdatePasswordInfoBarDelegate* _delegate;
}
@property(nonatomic, retain) SelectorCoordinator* selectorCoordinator;
@@ -30,13 +28,9 @@ NSUInteger kAccountTag = 10;
@synthesize selectorCoordinator = _selectorCoordinator;
-- (instancetype)initWithDelegate:(InfoBarViewDelegate*)delegate {
- self = [super initWithDelegate:delegate];
- if (self) {
- _propertyReleaser_UpdatePasswordInfoBarController.Init(
- self, [UpdatePasswordInfoBarController class]);
- }
- return self;
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
}
- (InfoBarView*)viewForDelegate:

Powered by Google App Engine
This is Rietveld 408576698