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

Unified Diff: ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.mm

Issue 2568143002: [ObjC ARC] Converts ios/chrome/browser/ui/alert_coordinator:alert_coordinator to ARC. (Closed)
Patch Set: comment Created 4 years 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/alert_coordinator/action_sheet_coordinator.mm
diff --git a/ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.mm b/ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.mm
index 5edc9db9a9404f71dac78941296751243067b673..31af72bf2e424545d27ec08aafa428af8d6fd78b 100644
--- a/ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.mm
+++ b/ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.mm
@@ -4,13 +4,17 @@
#import "ios/chrome/browser/ui/alert_coordinator/action_sheet_coordinator.h"
-#import "base/mac/scoped_nsobject.h"
+#import "base/logging.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
@interface ActionSheetCoordinator () {
// Rectangle for the popover alert.
CGRect _rect;
// View for the popovert alert.
- base::scoped_nsobject<UIView> _view;
+ UIView* _view;
}
@end
@@ -34,7 +38,7 @@
message:message];
if (self) {
_rect = rect;
- _view.reset([view retain]);
+ _view = view;
}
return self;
}
« no previous file with comments | « ios/chrome/browser/ui/alert_coordinator/BUILD.gn ('k') | ios/chrome/browser/ui/alert_coordinator/alert_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698