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

Unified Diff: ios/chrome/browser/ui/authentication/authentication_ui_util.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/authentication_ui_util.mm
diff --git a/ios/chrome/browser/ui/authentication/authentication_ui_util.mm b/ios/chrome/browser/ui/authentication/authentication_ui_util.mm
index a61be1bd6175b3ee39fb2f1210eb7313f299eff5..25636b5d17f5ef70fd5b35bb3210912304de05dc 100644
--- a/ios/chrome/browser/ui/authentication/authentication_ui_util.mm
+++ b/ios/chrome/browser/ui/authentication/authentication_ui_util.mm
@@ -11,6 +11,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
+
namespace ios_internal {
AlertCoordinator* ErrorCoordinator(NSError* error,
@@ -51,10 +55,10 @@ AlertCoordinator* ErrorCoordinatorNoItem(NSError* error,
// |error.localizedDescription| contains the error domain and code.
errorMessage = error.localizedDescription;
}
- AlertCoordinator* alertCoordinator = [[[AlertCoordinator alloc]
- initWithBaseViewController:viewController
- title:title
- message:errorMessage] autorelease];
+ AlertCoordinator* alertCoordinator =
+ [[AlertCoordinator alloc] initWithBaseViewController:viewController
+ title:title
+ message:errorMessage];
return alertCoordinator;
}

Powered by Google App Engine
This is Rietveld 408576698