Commit 3493d6fd authored by stkhapugin's avatar stkhapugin Committed by Commit Bot

[ObjC ARC] Converts ios/public/provider/chrome/browser/signin:signin to ARC.

Automatically generated ARCMigrate commit
Notable issues:None
BUG=624363
TEST=None

Review-Url: https://codereview.chromium.org/2964383002
Cr-Commit-Position: refs/heads/master@{#485999}
parent 5426f7d0
......@@ -3,6 +3,7 @@
# found in the LICENSE file.
source_set("signin") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"chrome_identity.h",
"chrome_identity.mm",
......
......@@ -14,19 +14,19 @@
// Identity/account email address. This can be shown to the user, but is not a
// unique identifier (@see gaiaID).
@property(nonatomic, readonly) NSString* userEmail;
@property(strong, nonatomic, readonly) NSString* userEmail;
// The unique GAIA user identifier for this identity/account.
// You may use this as a unique identifier to remember a particular identity.
@property(nonatomic, readonly) NSString* gaiaID;
@property(strong, nonatomic, readonly) NSString* gaiaID;
// Returns the full name of the identity.
// Could be nil if no full name has been fetched for this account yet.
@property(nonatomic, readonly) NSString* userFullName;
@property(strong, nonatomic, readonly) NSString* userFullName;
// Cached Hashed Gaia ID. This is used to pass the currently signed in account
// between apps.
@property(nonatomic, readonly) NSString* hashedGaiaID;
@property(strong, nonatomic, readonly) NSString* hashedGaiaID;
@end
......
......@@ -6,6 +6,10 @@
#include "base/logging.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
@implementation ChromeIdentity
- (NSString*)userEmail {
......
......@@ -30,7 +30,7 @@ typedef void (^SigninCompletionCallback)(ChromeIdentity* identity,
@interface ChromeIdentityInteractionManager : NSObject
// Delegate used to present and dismiss the view controllers.
@property(nonatomic, assign) id<ChromeIdentityInteractionManagerDelegate>
@property(nonatomic, weak) id<ChromeIdentityInteractionManagerDelegate>
delegate;
// Whether the manager is currently being canceled. Delegates may inquire if the
......
......@@ -4,23 +4,14 @@
#import "ios/public/provider/chrome/browser/signin/chrome_identity_interaction_manager.h"
#import "base/ios/weak_nsobject.h"
#include "base/logging.h"
@interface ChromeIdentityInteractionManager () {
base::WeakNSProtocol<id<ChromeIdentityInteractionManagerDelegate>> _delegate;
}
@end
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
@implementation ChromeIdentityInteractionManager
- (id<ChromeIdentityInteractionManagerDelegate>)delegate {
return _delegate;
}
- (void)setDelegate:(id<ChromeIdentityInteractionManagerDelegate>)delegate {
_delegate.reset(delegate);
}
@synthesize delegate = _delegate;
- (BOOL)isCanceling {
return NO;
......
......@@ -6,6 +6,10 @@
#include "ios/public/provider/chrome/browser/signin/chrome_identity_interaction_manager.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace ios {
ChromeIdentityService::ChromeIdentityService() {}
......
......@@ -4,6 +4,10 @@
#include "ios/public/provider/chrome/browser/signin/signin_error_provider.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace ios {
SigninErrorProvider::SigninErrorProvider() {}
......
......@@ -6,6 +6,10 @@
#include <MacTypes.h>
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif
namespace ios {
SigninResourcesProvider::SigninResourcesProvider() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment