Fix a invalid read found by valgrind in process singleton linux.
Fix a invalid read found by valgrind in process singleton linux.

We set up a listener on the IO thread, but the listener lived longer
than the IO thread.  Instead, register a listener to stop listening
when the IO thread goes away.  We have to register the destruction
listener on the thread that we're listening to, so there's an new
StartListening method dispatched from ProcessSingleton::Create.

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


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

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