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/never_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/never_translate_infobar_controller.mm
diff --git a/ios/chrome/browser/translate/never_translate_infobar_controller.mm b/ios/chrome/browser/translate/never_translate_infobar_controller.mm
index bffa013238956cc6c3ad44ac124a287e27deaf55..6ce746e324347f8a242bf2a1fd076eb9f65815c0 100644
--- a/ios/chrome/browser/translate/never_translate_infobar_controller.mm
+++ b/ios/chrome/browser/translate/never_translate_infobar_controller.mm
@@ -32,15 +32,11 @@
frame:(CGRect)frame {
translate::TranslateInfoBarDelegate* translateInfoBarDelegate =
delegate->AsTranslateInfoBarDelegate();
- infobars::InfoBarDelegate* infoBarDelegate =
- static_cast<infobars::InfoBarDelegate*>(translateInfoBarDelegate);
DCHECK(!infoBarView_);
ios::ChromeBrowserProvider* provider = ios::GetChromeBrowserProvider();
infoBarView_.reset([provider->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