| 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..855a58d8fc45d7c3df95c372dc6db2c9c5dba963 100644
|
| --- a/ios/chrome/browser/xcallback_parameters.mm
|
| +++ b/ios/chrome/browser/xcallback_parameters.mm
|
| @@ -4,33 +4,27 @@
|
|
|
| #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;
|
| -}
|
| -@end
|
| -
|
| @implementation XCallbackParameters
|
| +@synthesize sourceAppId = _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()];
|
| -}
|
| -
|
| -- (NSString*)sourceAppId {
|
| - return _sourceAppId.get();
|
| + return [NSString stringWithFormat:@"SourceApp: %@\n", _sourceAppId];
|
| }
|
|
|
| #pragma mark - NSCoding Methods
|
|
|