OSX CHECK() when opening new window during session restore
commit8d4bbdc7f8560e04db2ad7d8f8683ff37272e3a6
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 20 Sep 2012 21:36:49 +0000 (20 21:36 +0000)
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 20 Sep 2012 21:36:49 +0000 (20 21:36 +0000)
treee74cde512c63da73989f80b0ee3f99dbfd9c2a5f
parent895e3666fd92de6abd82da4325181b883cf759cf
OSX CHECK() when opening new window during session restore

SessionRestore::RestoreSession is creating a nested message loop
and this lets in rogue dock and keyboard commands which conflict
with the restoration.
https://crash.corp.google.com/reportdetail?reportid=2137f96fd80aaf3c
https://crash.corp.google.com/reportdetail?reportid=d256ef5c849099c9
https://crash.corp.google.com/reportdetail?reportid=7c4e9e0207ab3448
https://crash.corp.google.com/reportdetail?reportid=6003f63c602bfc33

This CL explicitly checks for this session restore state and mutes
any commands during the restoration sequence.

BUG=107427
TEST=Observe crash logs.
R=mark@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157848 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/app_controller_mac.mm