ui_test_utils::NavigateToURLBlockUntilNavigationsComplete can be raced
ui_test_utils::NavigateToURLBlockUntilNavigationsComplete can be raced

I found in some prefetching safe browsing tests that chrome went so
awesomely fast that events went by before NavigateToURL started
observing them.  And so I adapted the Windowed.... model to the
NavigationNotificationObserver, and use that now in NavigateToURL in
the current_tab case.

BUG=75507
TEST=see http://codereview.chromium.org/6334131/

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

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

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