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

Unified Diff: ios/chrome/browser/translate/before_translate_infobar_controller.mm

Issue 975663002: Remove the distinction between informational and warning infobar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
Index: ios/chrome/browser/translate/before_translate_infobar_controller.mm
diff --git a/ios/chrome/browser/translate/before_translate_infobar_controller.mm b/ios/chrome/browser/translate/before_translate_infobar_controller.mm
index 8b98d4b830151e9e8c429752dffed19b19528cf5..72aed8c124e3acc418a846985c77fdc3e9ff2e59 100644
--- a/ios/chrome/browser/translate/before_translate_infobar_controller.mm
+++ b/ios/chrome/browser/translate/before_translate_infobar_controller.mm
@@ -127,14 +127,10 @@ NSTimeInterval kPickerAnimationDurationInSeconds = 0.2;
- (void)layoutForDelegate:(infobars::InfoBarDelegate*)delegate
frame:(CGRect)frame {
_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())

Powered by Google App Engine
This is Rietveld 408576698