In default X11 error handler, do not post task to message loop if there is no message loop.
In default X11 error handler, do not post task to message loop if there is no message loop.

There might not be a message loop if the X11 error happens early in initialization. This is the case for GLX initialization in the GPU process.

If there is no message loop, a simple error is logged containing the serial, error code, request code and minor code.

The purpose of posting a task to the message loop is to output a more descriptive error, involving calling various X11 functions such as XGetErrorText, which cannot be called in the error handler itself becasue of reentrancy issues.

BUG=109180
Review URL: http://codereview.chromium.org/9114014

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

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