Index: ios/chrome/browser/infobars/infobar.mm |
diff --git a/ios/chrome/browser/infobars/infobar.mm b/ios/chrome/browser/infobars/infobar.mm |
index 6851a77ab897878fa5ba92cc493a6b841843c5cd..3fffcc28508f598f4145937d45ea5e5bb843a1d8 100644 |
--- a/ios/chrome/browser/infobars/infobar.mm |
+++ b/ios/chrome/browser/infobars/infobar.mm |
@@ -13,6 +13,10 @@ |
#include "ios/chrome/browser/infobars/infobar_controller.h" |
#include "ios/chrome/browser/translate/translate_infobar_tags.h" |
+#if !defined(__has_feature) || !__has_feature(objc_arc) |
+#error "This file requires ARC support." |
+#endif |
+ |
using infobars::InfoBar; |
using infobars::InfoBarDelegate; |
@@ -26,7 +30,7 @@ InfoBarIOS::~InfoBarIOS() { |
} |
void InfoBarIOS::SetController(InfoBarController* controller) { |
- controller_.reset([controller retain]); |
+ controller_.reset(controller); |
} |
void InfoBarIOS::Layout(CGRect container_bounds) { |