Commit 23e3048f authored by Max Curran's avatar Max Curran Committed by Commit Bot

Removed surpression of Translate UI if auto translating a page due to link navigation.

Previously when navigating through a link from a page that was translated would case the new page to be translated automatically without any UI being shown. Now the normal translate UI will be shown, so that the user knows that the page is being translated.

Bug: 1057731
Change-Id: I777955d2b755c212565ed374641eb819e636bd41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2422816Reviewed-by: default avatarMegan Jablonski <megjablon@chromium.org>
Commit-Queue: Max Curran <curranmax@chromium.org>
Auto-Submit: Max Curran <curranmax@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809419}
parent 05784925
......@@ -89,15 +89,6 @@ void TranslateInfoBarDelegate::Create(
}
}
// Do not create the after translate infobar for navigation if we are auto
// translating.
if (((step == translate::TRANSLATE_STEP_AFTER_TRANSLATE) ||
(step == translate::TRANSLATE_STEP_TRANSLATING)) &&
translate_manager->GetLanguageState().InTranslateNavigation() &&
!triggered_from_menu) {
return;
}
// Find any existing translate infobar delegate.
infobars::InfoBar* old_infobar = NULL;
TranslateInfoBarDelegate* old_delegate = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment