Properly pass NSS parameters when initializing the PKCS#11 module on CrOS
Properly pass NSS parameters when initializing the PKCS#11 module on CrOS

When initializing the CHAPS PKCS#11 module in CrOS, properly
pass the NSS parameters to SECMOD_LoadUserModule. This
ensures that the default flags for the default slot to mark
the slot as friendly, which means it is not necessary to
call C_Login before calling any read-only operations. Any
actions that fail in read-only mode will still call C_Login.

BUG=118206, chromium-os:28842
TEST=See bug

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

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

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