Make sure to check for in-progress downloads when quitting. Adds back in code removed during quit refactoring. BUG=41675 TEST=quit while downloading, can cancel and quit app, as well as cancel the quit to allow the download to complete. When download completes, closing all windows shouldn't quit (normal behavior). Review URL: http://codereview.chromium.org/1746013
Make sure to check for in-progress downloads when quitting. Adds back in code
removed during quit refactoring.
BUG=41675
TEST=quit while downloading, can cancel and quit app, as well as cancel the quit to allow the download to complete. When download completes, closing all windows shouldn't quit (normal behavior).
Review URL: http://codereview.chromium.org/1746013

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

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