Test for anchor in TrayBubbleView before accessing
Test for anchor in TrayBubbleView before accessing

If BubbleDelegateView::OnWidgetClosing() gets called before TrayLayerAnimationObserver::OnLayerAnimationEnded gets called, it would be possible for anchor_rect() to get set to NULL and cause this crash. Adding a NULL check should be sufficient.

BUG=152999
TEST=Crash no longer occurs (See issue)


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

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

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