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

Unified Diff: ios/chrome/browser/infobars/confirm_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
« no previous file with comments | « ios/chrome/browser/infobars/BUILD.gn ('k') | ios/chrome/browser/infobars/infobar.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ios/chrome/browser/infobars/BUILD.gn ('k') | ios/chrome/browser/infobars/infobar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698