| 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;
|
|
|