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

Unified Diff: ios/chrome/browser/infobars/infobar_controller.mm

Issue 2574463002: [ObjC ARC] Converts ios/chrome/browser/infobars:infobars to ARC.\n\nAutomatically generated ARCMigr… (Closed)
Patch Set: retain-autorelease 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/infobars/infobar_controller.mm
diff --git a/ios/chrome/browser/infobars/infobar_controller.mm b/ios/chrome/browser/infobars/infobar_controller.mm
index e55cbe7af45ced6994df220cc9c16993523eb965..29d9fe2d21a1168379a7ea65ec7f9e4d37fb4f6a 100644
--- a/ios/chrome/browser/infobars/infobar_controller.mm
+++ b/ios/chrome/browser/infobars/infobar_controller.mm
@@ -9,8 +9,12 @@
#include "base/logging.h"
#import "ios/public/provider/chrome/browser/ui/infobar_view_protocol.h"
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
@interface InfoBarController () {
- base::scoped_nsobject<UIView<InfoBarViewProtocol>> _infoBarView;
+ UIView<InfoBarViewProtocol>* _infoBarView;
}
@end
@@ -33,7 +37,6 @@
- (void)dealloc {
[_infoBarView removeFromSuperview];
- [super dealloc];
}
- (int)barHeight {
@@ -46,9 +49,9 @@
_infoBarView = [self viewForDelegate:delegate frame:bounds];
}
-- (base::scoped_nsobject<UIView<InfoBarViewProtocol>>)
- viewForDelegate:(infobars::InfoBarDelegate*)delegate
- frame:(CGRect)bounds {
+- (UIView<InfoBarViewProtocol>*)viewForDelegate:
+ (infobars::InfoBarDelegate*)delegate
+ frame:(CGRect)bounds {
// Must be overriden in subclasses.
NOTREACHED();
return _infoBarView;
« no previous file with comments | « ios/chrome/browser/infobars/infobar_controller.h ('k') | ios/chrome/browser/infobars/infobar_manager_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698