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

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

Issue 2566993002: [ObjC ARC] Converts ios/chrome/browser:browser to ARC. (Closed)
Patch Set: comments 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
« no previous file with comments | « ios/chrome/browser/root_coordinator.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ios/chrome/browser/root_coordinator.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698