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

Unified Diff: ios/chrome/browser/ui/authentication/re_signin_infobar_delegate_unittest.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/ui/authentication/re_signin_infobar_delegate_unittest.mm
diff --git a/ios/chrome/browser/ui/authentication/re_signin_infobar_delegate_unittest.mm b/ios/chrome/browser/ui/authentication/re_signin_infobar_delegate_unittest.mm
index 7550ff4c76704bfd59840b46caba262b638ddf3e..680ad56229446dd7dbb8a44332cc09463208728b 100644
--- a/ios/chrome/browser/ui/authentication/re_signin_infobar_delegate_unittest.mm
+++ b/ios/chrome/browser/ui/authentication/re_signin_infobar_delegate_unittest.mm
@@ -6,7 +6,7 @@
#include <memory>
-#include "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#include "base/mac/scoped_nsobject.h"
#include "base/memory/ptr_util.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
@@ -25,9 +25,7 @@
#include "testing/platform_test.h"
// View that intercepts and stores chrome commands sent up the responder chain.
-@interface CatchExecuteCommandView : UIView {
- base::mac::ObjCPropertyReleaser propertyReleaser_CatchExecuteCommandView_;
-}
+@interface CatchExecuteCommandView : UIView
// Command sent up the responder chain and intercepted by this view.
@property(nonatomic, retain) id command;
@end
@@ -36,13 +34,9 @@
@synthesize command = _command;
-- (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
- if (self) {
- propertyReleaser_CatchExecuteCommandView_.Init(
- self, [CatchExecuteCommandView class]);
- }
- return self;
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
}
- (void)chromeExecuteCommand:(id)command {

Powered by Google App Engine
This is Rietveld 408576698