Fix issue with some locales simetimes getting the wrong page size. We use ulocdata_getPaperSize to get the preferred paper size for a region.  The error handling for the call assumed that a value other than U_ZERO_ERROR was an error.  This is incorrect.  The function sometimes returns a warning (negative value).  When that happens, the error handling code defaulted to 8.5x11 pages.
Fix issue with some locales simetimes getting the wrong page size.
We use ulocdata_getPaperSize to get the preferred paper size for
a region.  The error handling for the call assumed that a value other
than U_ZERO_ERROR was an error.  This is incorrect.  The function sometimes
returns a warning (negative value).  When that happens, the error handling
code defaulted to 8.5x11 pages.

This CL changes the error handling to no longer treat a warning as an error.

BUG=140821
TEST=Set display language to English(UK).  Print a web page and choose to save as PDF.  Verify that the saved PDF is A4.


Review URL: https://chromiumcodereview.appspot.com/10834217

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

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