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

Unified Diff: components/autofill/ios/browser/form_suggestion.mm

Issue 2807173003: [ObjC ARC] Converts components/autofill/ios/browser:browser to ARC.
Patch Set: Created 3 years, 8 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: 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

Powered by Google App Engine
This is Rietveld 408576698