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

Unified Diff: ios/web/public/origin_util_unittest.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: ios/web/public/origin_util_unittest.mm
diff --git a/ios/web/public/origin_util_unittest.mm b/ios/web/public/origin_util_unittest.mm
index 79cae2b04e782e378ef6ad8e9d61793c75f23b3a..723ebf714e7167898b751a35c78d9460b0c3b096 100644
--- a/ios/web/public/origin_util_unittest.mm
+++ b/ios/web/public/origin_util_unittest.mm
@@ -6,7 +6,7 @@
#import <WebKit/WebKit.h>
-#import "base/mac/objc_property_releaser.h"
+#include "base/mac/objc_release_properties.h"
#import "base/mac/scoped_nsobject.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
@@ -19,17 +19,13 @@
@property(nonatomic) NSInteger port;
@end
-@implementation WKSecurityOriginStub {
- base::mac::ObjCPropertyReleaser _propertyReleaser;
-}
+@implementation WKSecurityOriginStub
@synthesize protocol = _protocol;
@synthesize host = _host;
@synthesize port = _port;
-- (instancetype)init {
- if (self = [super init]) {
- _propertyReleaser.Init(self, [WKSecurityOriginStub class]);
- }
- return self;
+- (void)dealloc {
+ base::mac::ReleaseProperties(self);
+ [super dealloc];
}
@end
« no previous file with comments | « ios/chrome/browser/ui/tools_menu/tools_menu_view_tools_cell.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698