Omnibox: Fix OnEscapeKeyPressed Crash
Omnibox: Fix OnEscapeKeyPressed Crash

The associated bug implies a crash on the line
content::WebContents* contents = controller_->GetWebContents();
if (!contents->IsLoading()) {

This crash looks similar to the crash observed in
crbug.com/12250014
where we also assumed that GetWebContents() was non-NULL.

That was fixed by
https://chromiumcodereview.appspot.com/12250014

Peter wrote:
>>>
If we're still getting reports for this crash, then I'd say let's check in and
see if it makes the reports stop.

I'd also like to know if anywhere else assumes a non-NULL WebContents.  If this
makes the crash reports stop, we should fix any other such places too.
>>>

This is one of the other places.

BUG=167510


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

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

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