Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use absl::Cleanup rather than base::AutoReset in DisplayPopupMenu
Since RenderWidgetHostNSViewBridge might get deleted while displaying a popup menu, it is not safe to use base::AutoReset to reset the showing_popup_menu_ member. So use absl::Cleanup with a weak pointer instead. (cherry picked from commit 5c897e0) Bug: 338162110 Change-Id: Ic907b2e6541d095eebee2c13a778b2d46afa54ed Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5564186 Reviewed-by: Leonard Grey <[email protected]> Commit-Queue: Marijn Kruisselbrink <[email protected]> Cr-Original-Commit-Position: refs/heads/main@{#1305164} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5571680 Commit-Queue: Rubber Stamper <[email protected]> Bot-Commit: Rubber Stamper <[email protected]> Auto-Submit: Marijn Kruisselbrink <[email protected]> Cr-Commit-Position: refs/branch-heads/6478@{#598} Cr-Branched-From: e6143ac-refs/heads/main@{#1300313}
- Loading branch information