[IOS] Fixes the translate infobar crash
The reason for the crash was that BeforeTranslateInfoBarController calls TranslateInfoBarDelegate::ShowNeverTranslateInfobar() in order to show the "never translate infobar which expects the existing translate infobar to be owned by an instance of InfoBarManager. However InfoBarManagerImpl's lifetime is tied to the WebState and it may be destroyed due to navigation. Bug: 867097 Change-Id: Ibf4f6ad15971897a2ac844fa602f961748ec848e Reviewed-on: https://chromium-review.googlesource.com/1151618Reviewed-by:Rachel Blum <groby@chromium.org> Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#578414}
Showing
Please register or sign in to comment