linux/mac: Fix return status of OpenChannelToPlugin message in case of failure
linux/mac: Fix return status of OpenChannelToPlugin message in case of failure

Currently on linux if the plugin process dies, the PluginProcessHost is not destroyed.
A side effect of that is that if a renderer tries to create a new plugin, the OpenChannelToPlugin message returns success with an empty handle, which is interpreted as the host channel, to which the renderer tries to connect to a second time, causing DCHECKs and havok in the browser process.
This CL fixes that particular problem, returning failure if the browser can't connect to the plugin process.

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


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

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