The file menu was enabled even when a browser window was obscured by a modal dialog.  This fix disables these menu items while the dialog window is up.
The file menu was enabled even when a browser window was obscured by a modal dialog.  This fix disables these menu items while the dialog window is up.

BUG= http://crbug.com/23864
TEST= Open the "open file" file chooser window with cmd-o (or from the menu). Attempt to open a new tab, window, or file. Note that you cannot. Close the file chooser window, and note that these menu items are now enabled again.

Review URL: http://codereview.chromium.org/269035

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@28836 0039d316-1c4b-4281-b951-d872f2087c98

PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,TheTypoMaster/chromium-crosswalk,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,keishi/chromium,pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,rogerwang/chromium,jaruba/chromium.src,dushu1203/chromium.src,Chilledheart/chromium,nacl-webkit/chrome_deps,Chilledheart/chromium,Jonekee/chromium.src,Chilledheart/chromium,M4sse/chromium.src,robclark/chromium,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,ltilve/chromium,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,robclark/chromium,M4sse/chromium.src,markYoungH/chromium.src,robclark/chromium,markYoungH/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,dushu1203/chromium.src,ltilve/chromium,ChromiumWebApps/chromium,jaruba/chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,littlstar/chromium.src,ChromiumWebApps/chromium,rogerwang/chromium,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,littlstar/chromium.src,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,keishi/chromium,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,rogerwang/chromium,littlstar/chromium.src,Just-D/chromium-1,Fireblend/chromium-crosswalk,Chilledheart/chromium,mogoweb/chromium-crosswalk,dednal/chromium.src,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,chuan9/chromium-crosswalk,robclark/chromium,Just-D/chromium-1,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,ChromiumWebApps/chromium,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,jaruba/chromium.src,dushu1203/chromium.src,timopulkkinen/BubbleFish,M4sse/chromium.src,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,keishi/chromium,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dednal/chromium.src,Jonekee/chromium.src,zcbenz/cefode-chromium,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,jaruba/chromium.src,ltilve/chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,dednal/chromium.src,ltilve/chromium,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,Just-D/chromium-1,Jonekee/chromium.src,dednal/chromium.src,rogerwang/chromium,ondra-novak/chromium.src,rogerwang/chromium,littlstar/chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,Jonekee/chromium.src,markYoungH/chromium.src,Fireblend/chromium-crosswalk,ltilve/chromium,markYoungH/chromium.src,ltilve/chromium,markYoungH/chromium.src,ltilve/chromium,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,chuan9/chromium-crosswalk,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,jaruba/chromium.src,zcbenz/cefode-chromium,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,hgl888/chromium-crosswalk-efl,mogoweb/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,Chilledheart/chromium,M4sse/chromium.src,ChromiumWebApps/chromium,jaruba/chromium.src,patrickm/chromium.src,hujiajie/pa-chromium,dushu1203/chromium.src,anirudhSK/chromium,keishi/chromium,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk,hgl888/chromium-crosswalk,anirudhSK/chromium,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,Jonekee/chromium.src,Jonekee/chromium.src,robclark/chromium,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,patrickm/chromium.src,junmin-zhu/chromium-rivertrail,Chilledheart/chromium,keishi/chromium,mogoweb/chromium-crosswalk,rogerwang/chromium,dednal/chromium.src,M4sse/chromium.src,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dednal/chromium.src,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,anirudhSK/chromium,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,littlstar/chromium.src,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,robclark/chromium,axinging/chromium-crosswalk,ondra-novak/chromium.src,littlstar/chromium.src,jaruba/chromium.src,markYoungH/chromium.src,ChromiumWebApps/chromium,keishi/chromium,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,ChromiumWebApps/chromium,keishi/chromium,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,robclark/chromium,Fireblend/chromium-crosswalk,patrickm/chromium.src,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,M4sse/chromium.src,hujiajie/pa-chromium,Just-D/chromium-1,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,markYoungH/chromium.src,dednal/chromium.src,crosswalk-project/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,ltilve/chromium,patrickm/chromium.src,nacl-webkit/chrome_deps,dushu1203/chromium.src,dushu1203/chromium.src,ondra-novak/chromium.src,nacl-webkit/chrome_deps,rogerwang/chromium,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,keishi/chromium,littlstar/chromium.src,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,patrickm/chromium.src,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,keishi/chromium,dednal/chromium.src,ondra-novak/chromium.src,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,timopulkkinen/BubbleFish,dushu1203/chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,robclark/chromium,keishi/chromium,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,patrickm/chromium.src,axinging/chromium-crosswalk,robclark/chromium,patrickm/chromium.src,nacl-webkit/chrome_deps,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,hgl888/chromium-crosswalk-efl,ltilve/chromium,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,rogerwang/chromium,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,hujiajie/pa-chromium,anirudhSK/chromium,timopulkkinen/BubbleFish,Chilledheart/chromium,keishi/chromium,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Jonekee/chromium.src,Just-D/chromium-1,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,markYoungH/chromium.src,M4sse/chromium.src,anirudhSK/chromium,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,nacl-webkit/chrome_deps,robclark/chromium,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,hujiajie/pa-chromium,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,Jonekee/chromium.src,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,dushu1203/chromium.src