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

Unified Diff: ios/chrome/browser/ui/elements/activity_overlay_view_controller.mm

Issue 2931383003: [ObjC ARC] Converts ios/chrome/browser/ui/elements:elements_internal to ARC. (Closed)
Patch Set: 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
« no previous file with comments | « ios/chrome/browser/ui/elements/activity_overlay_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/ui/elements/activity_overlay_view_controller.mm
diff --git a/ios/chrome/browser/ui/elements/activity_overlay_view_controller.mm b/ios/chrome/browser/ui/elements/activity_overlay_view_controller.mm
index dea7ee256025992849586d898d5a6e7fa623720b..da374456dfb9f092928106a879937ab8914151f8 100644
--- a/ios/chrome/browser/ui/elements/activity_overlay_view_controller.mm
+++ b/ios/chrome/browser/ui/elements/activity_overlay_view_controller.mm
@@ -8,6 +8,10 @@
#import "ios/chrome/browser/ui/uikit_ui_util.h"
#import "ios/third_party/material_components_ios/src/components/ActivityIndicator/src/MaterialActivityIndicator.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
namespace {
// Size of the activity indicator.
const CGFloat kActivityIndicatorSize = 48;
@@ -21,9 +25,9 @@ const CGFloat kBackgroundAlpha = 0.5;
[super viewDidLoad];
self.view.backgroundColor = [UIColor colorWithWhite:0 alpha:kBackgroundAlpha];
- MDCActivityIndicator* activityIndicator = [[[MDCActivityIndicator alloc]
+ MDCActivityIndicator* activityIndicator = [[MDCActivityIndicator alloc]
initWithFrame:CGRectMake(0, 0, kActivityIndicatorSize,
- kActivityIndicatorSize)] autorelease];
+ kActivityIndicatorSize)];
activityIndicator.translatesAutoresizingMaskIntoConstraints = NO;
[self.view addSubview:activityIndicator];
AddSameCenterConstraints(self.view, activityIndicator);
« no previous file with comments | « ios/chrome/browser/ui/elements/activity_overlay_coordinator.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698