Ensure method to set up cmd-w/cmd-shift-w runs on the main thread, add a DCHECK to try to catch instances where it is called away from the main thread. BUG=32786 TEST=cmd-w/cmd-shift-w should always be correct. Review URL: http://codereview.chromium.org/546106
Ensure method to set up cmd-w/cmd-shift-w runs on the main thread, add a DCHECK to try to catch instances where it is called away from the main thread.
BUG=32786
TEST=cmd-w/cmd-shift-w should always be correct.
Review URL: http://codereview.chromium.org/546106

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

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