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

Unified Diff: ios/chrome/browser/ui/settings/save_passwords_collection_view_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
Index: ios/chrome/browser/ui/settings/save_passwords_collection_view_controller.mm
diff --git a/ios/chrome/browser/ui/settings/save_passwords_collection_view_controller.mm b/ios/chrome/browser/ui/settings/save_passwords_collection_view_controller.mm
index 54759967257ab4ed06f541d54a33445d6ce1efae..742b1c7ba7c18760938259d0b7d1651cc1dcad8f 100644
--- a/ios/chrome/browser/ui/settings/save_passwords_collection_view_controller.mm
+++ b/ios/chrome/browser/ui/settings/save_passwords_collection_view_controller.mm
@@ -11,7 +11,7 @@
#import "base/ios/weak_nsobject.h"
#include "base/logging.h"
#include "base/mac/foundation_util.h"
-#import "base/mac/objc_release_properties.h"
+#import "base/mac/objc_property_releaser.h"
#import "base/mac/scoped_nsobject.h"
#include "base/memory/ptr_util.h"
#include "base/numerics/safe_conversions.h"
@@ -162,6 +162,9 @@
// Module containing the reauthentication mechanism for viewing and copying
// passwords.
base::scoped_nsobject<ReauthenticationModule> reauthenticationModule_;
+
+ base::mac::ObjCPropertyReleaser
+ propertyReleaser_SavePasswordsCollectionViewController_;
}
// Kick off async request to get logins from password store.
- (void)getLoginsFromPasswordStore;
@@ -191,13 +194,15 @@
[self getLoginsFromPasswordStore];
[self updateEditButton];
[self loadModel];
+
+ propertyReleaser_SavePasswordsCollectionViewController_.Init(
+ self, [SavePasswordsCollectionViewController class]);
}
return self;
}
- (void)dealloc {
[passwordManagerEnabled_ setObserver:nil];
- base::mac::ReleaseProperties(self);
[super dealloc];
}

Powered by Google App Engine
This is Rietveld 408576698