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

Unified Diff: ios/chrome/browser/ui/authentication/re_signin_infobar_delegate.mm

Issue 2936583002: [ObjC ARC] Converts ios/chrome/browser/ui/authentication:authentication to ARC. (Closed)
Patch Set: Review fixes. Created 3 years, 6 months 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/ui/authentication/re_signin_infobar_delegate.mm
diff --git a/ios/chrome/browser/ui/authentication/re_signin_infobar_delegate.mm b/ios/chrome/browser/ui/authentication/re_signin_infobar_delegate.mm
index 75146aba43ca45c412de9d07007b7e9f2c3bc244..2dccce2f7afad4f1d83550fa10c5c228bcf4ae47 100644
--- a/ios/chrome/browser/ui/authentication/re_signin_infobar_delegate.mm
+++ b/ios/chrome/browser/ui/authentication/re_signin_infobar_delegate.mm
@@ -24,6 +24,10 @@
#include "ios/chrome/grit/ios_strings.h"
#include "ui/base/l10n/l10n_util.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
// static
bool ReSignInInfoBarDelegate::Create(ios::ChromeBrowserState* browser_state,
Tab* tab) {
@@ -112,10 +116,10 @@ bool ReSignInInfoBarDelegate::Accept() {
base::UserMetricsAction("Signin_Signin_FromReSigninInfobar"));
UIView* infobarView = static_cast<InfoBarIOS*>(infobar())->view();
DCHECK(infobarView);
- base::scoped_nsobject<ShowSigninCommand> command([[ShowSigninCommand alloc]
+ ShowSigninCommand* command = [[ShowSigninCommand alloc]
initWithOperation:AUTHENTICATION_OPERATION_REAUTHENTICATE
accessPoint:signin_metrics::AccessPoint::
- ACCESS_POINT_RESIGNIN_INFOBAR]);
+ ACCESS_POINT_RESIGNIN_INFOBAR];
[infobarView chromeExecuteCommand:command];
// Stop displaying the infobar once user interacted with it.

Powered by Google App Engine
This is Rietveld 408576698