| Index: ios/chrome/browser/translate/translate_message_infobar_controller.mm
|
| diff --git a/ios/chrome/browser/translate/translate_message_infobar_controller.mm b/ios/chrome/browser/translate/translate_message_infobar_controller.mm
|
| index 5af8763bd58b7ec67bef82d5fe82d50cce616dbd..fea850a9dfa5d5e06c9d3e10809c411d874cc6ee 100644
|
| --- a/ios/chrome/browser/translate/translate_message_infobar_controller.mm
|
| +++ b/ios/chrome/browser/translate/translate_message_infobar_controller.mm
|
| @@ -4,7 +4,6 @@
|
|
|
| #include "ios/chrome/browser/translate/translate_message_infobar_controller.h"
|
|
|
| -#include "base/mac/scoped_nsobject.h"
|
| #include "base/strings/sys_string_conversions.h"
|
| #include "components/translate/core/browser/translate_infobar_delegate.h"
|
| #include "ios/chrome/browser/translate/translate_infobar_tags.h"
|
| @@ -12,6 +11,10 @@
|
| #import "ios/chrome/browser/ui/infobars/infobar_view_delegate.h"
|
| #include "ui/gfx/image/image.h"
|
|
|
| +#if !defined(__has_feature) || !__has_feature(objc_arc)
|
| +#error "This file requires ARC support."
|
| +#endif
|
| +
|
| @interface TranslateMessageInfoBarController ()
|
|
|
| // Action for any of the user defined buttons.
|
| @@ -23,11 +26,11 @@
|
|
|
| - (InfoBarView*)viewForDelegate:(infobars::InfoBarDelegate*)delegate
|
| frame:(CGRect)frame {
|
| - base::scoped_nsobject<InfoBarView> infoBarView;
|
| + InfoBarView* infoBarView;
|
| translate::TranslateInfoBarDelegate* translateInfoBarDelegate =
|
| delegate->AsTranslateInfoBarDelegate();
|
| - infoBarView.reset(
|
| - [[InfoBarView alloc] initWithFrame:frame delegate:self.delegate]);
|
| + infoBarView =
|
| + [[InfoBarView alloc] initWithFrame:frame delegate:self.delegate];
|
| // Icon
|
| gfx::Image icon = translateInfoBarDelegate->GetIcon();
|
| if (!icon.IsEmpty())
|
| @@ -48,7 +51,7 @@
|
| target:self
|
| action:@selector(infoBarButtonDidPress:)];
|
| }
|
| - return [[infoBarView retain] autorelease];
|
| + return infoBarView;
|
| }
|
|
|
| #pragma mark - Handling of User Events
|
|
|