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

Side by Side Diff: ios/public/provider/chrome/browser/voice/voice_search_language.mm

Issue 2847863005: [ObjC ARC] Converts ios/public/provider/chrome/browser/voice:voice to ARC. (Closed)
Patch Set: remove empty braces 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/public/provider/chrome/browser/voice/voice_search_language.h" 5 #import "ios/public/provider/chrome/browser/voice/voice_search_language.h"
6 6
7 #include "base/mac/objc_property_releaser.h" 7 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
8 10
9 @implementation VoiceSearchLanguage { 11 @implementation VoiceSearchLanguage
10 base::mac::ObjCPropertyReleaser _propertyReleaser_VoiceSearchLanguage;
11 }
12 12
13 @synthesize identifier = _identifier; 13 @synthesize identifier = _identifier;
14 @synthesize displayName = _displayName; 14 @synthesize displayName = _displayName;
15 @synthesize localizationPreference = _localizationPreference; 15 @synthesize localizationPreference = _localizationPreference;
16 16
17 - (instancetype)initWithIdentifier:(NSString*)identifier 17 - (instancetype)initWithIdentifier:(NSString*)identifier
18 displayName:(NSString*)displayName 18 displayName:(NSString*)displayName
19 localizationPreference:(NSString*)localizationPreference { 19 localizationPreference:(NSString*)localizationPreference {
20 if ((self = [super init])) { 20 if ((self = [super init])) {
21 _identifier = [identifier copy]; 21 _identifier = [identifier copy];
22 _displayName = [displayName copy]; 22 _displayName = [displayName copy];
23 _localizationPreference = [localizationPreference copy]; 23 _localizationPreference = [localizationPreference copy];
24
25 _propertyReleaser_VoiceSearchLanguage.Init(self,
26 [VoiceSearchLanguage class]);
27 } 24 }
28 return self; 25 return self;
29 } 26 }
30 27
31 @end 28 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698