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

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

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: weak -> assign Created 3 years, 11 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 #include "base/mac/objc_release_properties.h"
8 8
9 @implementation VoiceSearchLanguage { 9 @implementation VoiceSearchLanguage
10 base::mac::ObjCPropertyReleaser _propertyReleaser_VoiceSearchLanguage;
11 }
12 10
13 @synthesize identifier = _identifier; 11 @synthesize identifier = _identifier;
14 @synthesize displayName = _displayName; 12 @synthesize displayName = _displayName;
15 @synthesize localizationPreference = _localizationPreference; 13 @synthesize localizationPreference = _localizationPreference;
16 14
17 - (instancetype)initWithIdentifier:(NSString*)identifier 15 - (instancetype)initWithIdentifier:(NSString*)identifier
18 displayName:(NSString*)displayName 16 displayName:(NSString*)displayName
19 localizationPreference:(NSString*)localizationPreference { 17 localizationPreference:(NSString*)localizationPreference {
20 if ((self = [super init])) { 18 if ((self = [super init])) {
21 _identifier = [identifier copy]; 19 _identifier = [identifier copy];
22 _displayName = [displayName copy]; 20 _displayName = [displayName copy];
23 _localizationPreference = [localizationPreference copy]; 21 _localizationPreference = [localizationPreference copy];
24
25 _propertyReleaser_VoiceSearchLanguage.Init(self,
26 [VoiceSearchLanguage class]);
27 } 22 }
28 return self; 23 return self;
29 } 24 }
30 25
26 - (void)dealloc {
27 base::mac::ReleaseProperties(self);
28 [super dealloc];
29 }
30
31 @end 31 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698