[Messages] Dismiss all messages when the tab gets closed
This CL addresses a crash in the scenario when the tab is closed while the message is still displayed. In this scenario WebContents gets destroyed before the message is dismissed by auto-dismiss timer. Along with WebContents, SavePasswordMessageDelegate get destroyed. Its dtor fails on the check that the message was dismissed. This CL dismisses all messages on willCloseTab event from TabModel. BUG=1161664 R=lazzzis@chromium.org,twellington@chromium.org Change-Id: Id2b94dfe5d37f17f50ea60356a7edccc524d0778 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2610365Reviewed-by:Theresa <twellington@chromium.org> Commit-Queue: Pavel Yatsuk <pavely@chromium.org> Cr-Commit-Position: refs/heads/master@{#840423}
Showing
Please register or sign in to comment