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

Unified Diff: ios/chrome/browser/xcallback_parameters.mm

Issue 2566993002: [ObjC ARC] Converts ios/chrome/browser:browser to ARC. (Closed)
Patch Set: Created 4 years 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
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
« ios/chrome/browser/root_coordinator.mm ('K') | « ios/chrome/browser/root_coordinator.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698