| 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 f3466fcba578207dd835636384e77b8ca50f2794..442d9a17df4b7fdef1a4753cb0e54f8bc3dd1239 100644
|
| --- a/ios/chrome/browser/translate/translate_message_infobar_controller.mm
|
| +++ b/ios/chrome/browser/translate/translate_message_infobar_controller.mm
|
| @@ -28,14 +28,10 @@
|
| frame:(CGRect)frame {
|
| translate::TranslateInfoBarDelegate* translateInfoBarDelegate =
|
| delegate->AsTranslateInfoBarDelegate();
|
| - infobars::InfoBarDelegate* infoBarDelegate =
|
| - static_cast<infobars::InfoBarDelegate*>(translateInfoBarDelegate);
|
| DCHECK(!infoBarView_);
|
| infoBarView_.reset([ios::GetChromeBrowserProvider()->CreateInfoBarView()
|
| initWithFrame:frame
|
| - delegate:delegate_
|
| - isWarning:infoBarDelegate->GetInfoBarType() ==
|
| - infobars::InfoBarDelegate::WARNING_TYPE]);
|
| + delegate:delegate_]);
|
| // Icon
|
| gfx::Image icon = translateInfoBarDelegate->GetIcon();
|
| if (!icon.IsEmpty())
|
|
|