[IOS][Translate] Notify TranslateInfoBarDelegate observer when it's destroyed
In some scenarios TranslateInfoBarDelegate gets destructed before the TranslateInfobarController and subsequently its TranslateInfoBarDelegateObserverBridge instance. This results in the delegate reference to be invalid in the observer bridge's destructor. TranslateInfoBarDelegate now notifies its observer before being so that it can stop observing the instance. Bug: 945433 Change-Id: I8b8644c66c84c3a4378f281d2937b931e3bd6f98 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536799 Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Reviewed-by:Sergio Collazos <sczs@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Reviewed-by:
anthonyvd <anthonyvd@chromium.org> Cr-Commit-Position: refs/heads/master@{#644813}
Showing
Please register or sign in to comment