summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 17:58:06 +0000
committerzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-02 17:58:06 +0000
commit49bb7ea3d0ae72016d2a6501985edc57dc3ef6bc (patch)
treee7f628edacfb8859323c1ff7c096b7d130d3aeeb
parent012f21d47f5ade20237468fb6b1a52f51170ebb2 (diff)
downloadchromium_src-49bb7ea3d0ae72016d2a6501985edc57dc3ef6bc.zip
chromium_src-49bb7ea3d0ae72016d2a6501985edc57dc3ef6bc.tar.gz
chromium_src-49bb7ea3d0ae72016d2a6501985edc57dc3ef6bc.tar.bz2
Submitting http://codereview.chromium.org/6392023/ on behalf of olege@ :
Set focus to omni box of the Net Tab Page. In some cases on ChromiumOS a new tab didn't have focus after being opened. BUG=chromium-os:10898 TEST=make sure that focus is set on omnibox when we create new tab on ChromeOS Review URL: http://codereview.chromium.org/6410004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73468 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/browser.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 0d16526..7893aee 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1360,6 +1360,7 @@ void Browser::NewTab() {
if (type() == TYPE_NORMAL) {
AddBlankTab(true);
+ GetSelectedTabContentsWrapper()->view()->RestoreFocus();
} else {
Browser* b = GetOrCreateTabbedBrowser(profile_);
b->AddBlankTab(true);