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

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

Issue 2852413002: Change id to instancetype in FormSuggestion (Closed)
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fe06b25f6aaf633ed3ffdc32c8e93b0016748d7c..4074e8e91918bd5d6665a840702454f6261b61df 100644
--- a/components/autofill/ios/browser/form_suggestion.mm
+++ b/components/autofill/ios/browser/form_suggestion.mm
@@ -10,10 +10,10 @@
@interface FormSuggestion ()
// Local initializer for a FormSuggestion.
-- (id)initWithValue:(NSString*)value
- displayDescription:(NSString*)displayDescription
- icon:(NSString*)icon
- identifier:(NSInteger)identifier;
+- (instancetype)initWithValue:(NSString*)value
+ displayDescription:(NSString*)displayDescription
+ icon:(NSString*)icon
+ identifier:(NSInteger)identifier;
@end
@implementation FormSuggestion
@@ -23,10 +23,10 @@
@synthesize icon = _icon;
@synthesize identifier = _identifier;
-- (id)initWithValue:(NSString*)value
- displayDescription:(NSString*)displayDescription
- icon:(NSString*)icon
- identifier:(NSInteger)identifier {
+- (instancetype)initWithValue:(NSString*)value
+ displayDescription:(NSString*)displayDescription
+ icon:(NSString*)icon
+ identifier:(NSInteger)identifier {
self = [super init];
if (self) {
_value = [value copy];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698