Ash Tray: Fix notification swipe controls button handler
When a settings or snooze button handler of the MessageView deletes |this| synchronously, we can't access any local fields anymore. This CL fixes that by getting a weak ptr to check if |this| is still valid after calling the MessageView. Bug: None Change-Id: I8153a4c56fe5b5c91eafd5f9d1cdbcbc3f58857a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2328858Reviewed-by:Tim Song <tengs@chromium.org> Commit-Queue: Richard Knoll <knollr@chromium.org> Cr-Commit-Position: refs/heads/master@{#793562}
Showing
Please register or sign in to comment