Index: components/autofill/ios/browser/form_suggestion.mm |
diff --git a/components/autofill/ios/browser/form_suggestion.mm b/components/autofill/ios/browser/form_suggestion.mm |
index f4bb40c37c3065eb921aceac76ee818042015683..490b4619405c08c6be4d2ac3372df8c9ea2a5401 100644 |
--- a/components/autofill/ios/browser/form_suggestion.mm |
+++ b/components/autofill/ios/browser/form_suggestion.mm |
@@ -4,7 +4,9 @@ |
#import "components/autofill/ios/browser/form_suggestion.h" |
-#include "base/mac/objc_property_releaser.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
@interface FormSuggestion () |
// Local initializer for a FormSuggestion. |
@@ -19,7 +21,6 @@ |
NSString* _displayDescription; |
stkhapugin
2017/04/11 11:09:16
I think these ivars are no longer necessary and ca
|
NSString* _icon; |
NSInteger _identifier; |
- base::mac::ObjCPropertyReleaser _propertyReleaser_FormSuggestion; |
} |
@synthesize value = _value; |
@@ -33,7 +34,6 @@ |
identifier:(NSInteger)identifier { |
self = [super init]; |
if (self) { |
- _propertyReleaser_FormSuggestion.Init(self, [FormSuggestion class]); |
_value = [value copy]; |
_displayDescription = [displayDescription copy]; |
_icon = [icon copy]; |
@@ -46,10 +46,10 @@ |
displayDescription:(NSString*)displayDescription |
icon:(NSString*)icon |
identifier:(NSInteger)identifier { |
- return [[[FormSuggestion alloc] initWithValue:value |
- displayDescription:displayDescription |
- icon:icon |
- identifier:identifier] autorelease]; |
+ return [[FormSuggestion alloc] initWithValue:value |
+ displayDescription:displayDescription |
+ icon:icon |
+ identifier:identifier]; |
} |
@end |