Revert 110557 - Use nacl::CreateMemoryObject to create dynamic code shared memory object
Revert 110557 - Use nacl::CreateMemoryObject to create dynamic code shared memory object

Use NaCl's code rather than base::SharedMemory to create the shared memory
object to whose mappings NaCl needs to apply PROT_EXEC.  We'll be changing
that NaCl code to deal with the Linux cases where shm_open objects cannot
have PROT_EXEC applied to their mappings.

BUG= http://code.google.com/p/chromium/issues/detail?id=103377
TEST= nacl_integration

R=mseaborn@chromium.org

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

TBR=mcgrathr@chromium.org
Review URL: http://codereview.chromium.org/8587055

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

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