Make Ctrl + T from apps focus the new tab's omnibox on Linux and ChromeOS.
commit6160055c44df13ba136c17842107782e359ee663
authorcalamity <calamity@chromium.org>
Thu, 30 Apr 2015 06:45:26 +0000 (29 23:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Apr 2015 06:46:07 +0000 (30 06:46 +0000)
tree9f262dc6c5b02cf0609235010b48f0e0e070f3a5
parent299999051553ce065f4277c809e7291150c26364
Make Ctrl + T from apps focus the new tab's omnibox on Linux and ChromeOS.

This CL fixes an issue where pressing Ctrl + T from a non-tabbed browser
would not focus the omnibox if the WebView of the new tab's browser window
was not focused.

This has been fixed by refocusing the omnibox after the browser Show() on
ChromeOS and by re-adding an ifdef that was introduced to Linux as part
of a ChromeOS specific fix in r173840.

BUG=399133

Review URL: https://codereview.chromium.org/1091953004

Cr-Commit-Position: refs/heads/master@{#327660}
chrome/browser/ui/ash/chrome_new_window_delegate.cc
chrome/browser/ui/browser.cc
chrome/browser/ui/browser.h
chrome/browser/ui/views/frame/browser_view.cc