Fix issue where opening a new tab using the ext API would not focus the omnibox.
Fix issue where opening a new tab using the ext API would not focus the omnibox.

The current behavior was correct for all other pages (focusing the contents, not the omnibox) but was not for the new tab page.

BUG=40977
TEST=see bug for some example reduced test cases.

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

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

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