Do not show menus during shutdown.
While menu is being shown, it is preventing Chrome from exiting. However, if a menu is opening while Chrome is already shutting down, this currently causes a CHECK failure (see linked bug). The CL is adding shutdown detection logic to ChromeViewsDelegate and avoids showing a menu if a shutdown is detected. Note that no callbacks (such as OnMenuClosed) are called. Bug: 960925 Test: none Change-Id: Ie282f353b94a5c79a29ba5f770808d552d8e2980 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1601419 Commit-Queue: Vladislav Kaznacheev <kaznacheev@chromium.org> Reviewed-by:Michael Wasserman <msw@chromium.org> Reviewed-by:
Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#659304}
Showing
Please register or sign in to comment