Fix flaky test DesksWindowCyclingTest.CycleShowsAllDesksWindows
Since the WindowCycleView is owned by the Views hierarchy, its Layout() may get called even after WindowCycleList is destroyed. This CL fixes the crash by making sure Layout() returns early in such situation. BUG=1013174 TEST=Run test with --gtest_repeat=20, no flakes at all. Change-Id: I6b2e66ac9695f27de2969b7c4fb6729b43db79f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1873087Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#708039}
Showing
Please register or sign in to comment