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