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

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

Issue 2849533003: [ObjC ARC] Converts components/autofill/ios/browser:browser to ARC. (Closed)
Patch Set: Address comments 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..fe06b25f6aaf633ed3ffdc32c8e93b0016748d7c 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.
@@ -14,13 +16,7 @@
identifier:(NSInteger)identifier;
@end
-@implementation FormSuggestion {
- NSString* _value;
- NSString* _displayDescription;
- NSString* _icon;
- NSInteger _identifier;
- base::mac::ObjCPropertyReleaser _propertyReleaser_FormSuggestion;
-}
+@implementation FormSuggestion
@synthesize value = _value;
@synthesize displayDescription = _displayDescription;
@@ -33,7 +29,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 +41,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