Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid dangling pointers in LabelButton test.
To avoid dangling pointers, this CL does the following: - It calls ExtractAsDangling on raw pointers to widget before calling Widget::CloseNow(), since CloseNow() will trigger destruction. - It replaces pointers to views with getters that obtain the views by searching for them by ID in the ContentsView of the widget. All the other changes in the file are due to replacing members by getters, mostly button_ -> button(). Bug: 1469136 Change-Id: Ibb4b954737e5ec413127d8d6fbe086644fb8a397 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4938582 Reviewed-by: Elly FJ <ellyjones@chromium.org> Commit-Queue: Elly FJ <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/main@{#1210228}
- Loading branch information