Fix hang in clearing browsing data from incognito mode.
Fix hang in clearing browsing data from incognito mode.

When deleting Keywords, the BrowsingDataRemover class may need to load the TemplateURLModel if it isn't loaded and delete keywords asynchronously from the Observe function. The check to see if we were getting the model with the right profile wasn't taking into account that we might be doing this while incognito, which led to us failing to set the waiting_for_keywords_ flag, resulting in a hang (issue 2145). This fixes that.

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

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

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