Mac: Fix for Cmd-W sometimes closes the window instead of a single tab
commit04f7bab9db7f57a17dc4388cdf71644a8d740279
authorandresantoso <andresantoso@chromium.org>
Thu, 15 Jan 2015 19:19:16 +0000 (15 11:19 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 15 Jan 2015 19:20:06 +0000 (15 19:20 +0000)
tree5e88feb553e1fe41dcd831d999cb53f834ed73d6
parentbefea2b1a37ed90b735f4acfe8c61687ee7d9c50
Mac: Fix for Cmd-W sometimes closes the window instead of a single tab

Avoid potential race conditions by updating shortcuts on demand in
-menuNeedsUpdate:, it is called by AppKit before the menu is shown and
before key equivalent processing.

BUG=47134

Review URL: https://codereview.chromium.org/848003006

Cr-Commit-Position: refs/heads/master@{#311709}
chrome/browser/app_controller_mac.h
chrome/browser/app_controller_mac.mm
chrome/test/base/interactive_test_utils_mac.mm