Change checkdeps.py to stop scanning after a certain number of non-include lines.
Change checkdeps.py to stop scanning after a certain number of non-include lines.

Previously it would always scan 150 lines, even if the file had more includes than that.

Also, break out of the loop once we reach the end of the file, rather than looping and testing the empty string until we hit the limit.

BUG=131315
TEST=In a file with lots of includes, introduce an illegal one at the end.  Run checkdeps.


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

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

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