Add code for enabling or disabling CRLs and OCSP correctly. Previously we varied the number of elements in the method_flags array to enable/disable OCSP.  It turns out that's the wrong way.
Add code for enabling or disabling CRLs and OCSP correctly.
Previously we varied the number of elements in the method_flags
array to enable/disable OCSP.  It turns out that's the wrong way.

Between CRLs and OCSP, we prefer OCSP.

R=ukai
BUG=http://crbug.com/10911
TEST=none
Review URL: http://codereview.chromium.org/174283

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

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