Updated TestChildModalParent to use AddedToWidget()
Removed the use of ViewHierarchyChanged() to update native view properties when added to a view hierarchy. Changed to use AddedToWidget() instead. Currently the logic in ViewHierarchyChanged() requires the view be in a Widget hierarchy. This should not be assumed in ViewHierarchyChanged(). Instead, having the logic in AddedToWidget() helps to make the assumptions more clear. Bug: 1083822 Change-Id: Ia393fd0141a863212e5c9e30e364fbc4d2b2d7d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2206215Reviewed-by:Robert Flack <flackr@chromium.org> Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org> Cr-Commit-Position: refs/heads/master@{#771036}
Showing
Please register or sign in to comment