cocoa: don't crash validating menu items
During browser startup or shutdown, there may be no tabs on the TabStripModel while the browser's menu has already been created. In this case, it isn't safe to ask the model about its active tab, so don't. Bug: 730002 Change-Id: I18dfa17228dc061685dd62ba000d1607c6995290 Reviewed-on: https://chromium-review.googlesource.com/575876 Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Reviewed-by:
Yuri Wiitala <miu@chromium.org> Cr-Commit-Position: refs/heads/master@{#487946}
Showing
Please register or sign in to comment