Index: ios/chrome/browser/infobars/confirm_infobar_controller.mm |
diff --git a/ios/chrome/browser/infobars/confirm_infobar_controller.mm b/ios/chrome/browser/infobars/confirm_infobar_controller.mm |
index 686e324193da9fb174a856a3e7affa1315e45c07..10ab652052e0b836c9e60a6d3d39b7aa58e0248b 100644 |
--- a/ios/chrome/browser/infobars/confirm_infobar_controller.mm |
+++ b/ios/chrome/browser/infobars/confirm_infobar_controller.mm |
@@ -15,6 +15,10 @@ |
#include "ui/base/window_open_disposition.h" |
#include "ui/gfx/image/image.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
namespace { |
// UI Tags for the infobar elements. |
@@ -53,13 +57,13 @@ ConfirmInfoBarDelegate::InfoBarButton UITagToButton(NSUInteger tag) { |
#pragma mark - |
#pragma mark InfoBarController |
-- (base::scoped_nsobject<UIView<InfoBarViewProtocol>>) |
- viewForDelegate:(infobars::InfoBarDelegate*)delegate |
- frame:(CGRect)frame { |
- base::scoped_nsobject<UIView<InfoBarViewProtocol>> infoBarView; |
+- (UIView<InfoBarViewProtocol>*)viewForDelegate: |
+ (infobars::InfoBarDelegate*)delegate |
+ frame:(CGRect)frame { |
+ UIView<InfoBarViewProtocol>* infoBarView; |
_confirmInfobarDelegate = delegate->AsConfirmInfoBarDelegate(); |
- infoBarView.reset( |
- ios::GetChromeBrowserProvider()->CreateInfoBarView(frame, self.delegate)); |
+ infoBarView = |
+ ios::GetChromeBrowserProvider()->CreateInfoBarView(frame, self.delegate); |
// Model data. |
gfx::Image modelIcon = _confirmInfobarDelegate->GetIcon(); |
int buttons = _confirmInfobarDelegate->GetButtons(); |