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

Unified Diff: ios/chrome/browser/translate/after_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/after_translate_infobar_controller.mm
diff --git a/ios/chrome/browser/translate/after_translate_infobar_controller.mm b/ios/chrome/browser/translate/after_translate_infobar_controller.mm
index b325b0f83548fb3f03aff03832dec8d2d82b77b8..c6c5c5d1455b7203f1a575577b1926c83264cea2 100644
--- a/ios/chrome/browser/translate/after_translate_infobar_controller.mm
+++ b/ios/chrome/browser/translate/after_translate_infobar_controller.mm
@@ -34,14 +34,10 @@
frame:(CGRect)frame {
_translateInfoBarDelegate = delegate->AsTranslateInfoBarDelegate();
DCHECK(_translateInfoBarDelegate);
- 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