Chromium Code Reviews| Index: ios/chrome/browser/xcallback_parameters.mm |
| diff --git a/ios/chrome/browser/xcallback_parameters.mm b/ios/chrome/browser/xcallback_parameters.mm |
| index 72ea03d8bbba7ec56ceb478b5880c6c0212057f7..3dc8b9cbd1ba8cd093bc9b08aedb699823350f96 100644 |
| --- a/ios/chrome/browser/xcallback_parameters.mm |
| +++ b/ios/chrome/browser/xcallback_parameters.mm |
| @@ -4,14 +4,16 @@ |
| #import "ios/chrome/browser/xcallback_parameters.h" |
| -#include "base/mac/scoped_nsobject.h" |
| +#if !defined(__has_feature) || !__has_feature(objc_arc) |
| +#error "This file requires ARC support." |
| +#endif |
| namespace { |
| NSString* const kSourceAppIdKey = @"sourceAppId"; |
| } |
| @interface XCallbackParameters () { |
| - base::scoped_nsobject<NSString> _sourceAppId; |
| + NSString* _sourceAppId; |
|
sdefresne
2016/12/12 19:37:01
This can probably be synthesized too.
stkhapugin
2016/12/13 13:31:11
Done.
|
| } |
| @end |
| @@ -20,17 +22,17 @@ NSString* const kSourceAppIdKey = @"sourceAppId"; |
| - (instancetype)initWithSourceAppId:(NSString*)sourceAppId { |
| self = [super init]; |
| if (self) { |
| - _sourceAppId.reset([sourceAppId copy]); |
| + _sourceAppId = [sourceAppId copy]; |
| } |
| return self; |
| } |
| - (NSString*)description { |
| - return [NSString stringWithFormat:@"SourceApp: %@\n", _sourceAppId.get()]; |
| + return [NSString stringWithFormat:@"SourceApp: %@\n", _sourceAppId]; |
| } |
| - (NSString*)sourceAppId { |
| - return _sourceAppId.get(); |
| + return _sourceAppId; |
| } |
| #pragma mark - NSCoding Methods |