From 59456e3a2d3a65570c8baba2c412bfbb59d2ac99 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Sat, 28 Feb 2009 00:48:30 +0000 Subject: When starting Chrome with the option to go to the home page on start-up, the focus was set to the location bar, not the page. I had previously fixed this problem for restore-session, not for the home page case. BUG=6000 TEST=Set www.google.com as your home page, select "on start-up open my home page". Start Chrome, Google page should be shown, focus should be on the Google search field. Review URL: http://codereview.chromium.org/28287 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10660 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser_init.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/browser_init.cc') diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index 00b1c31..b393d18 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -339,6 +339,10 @@ Browser* BrowserInit::LaunchWithProfile::OpenURLsInBrowser( AddCrashedInfoBarIfNecessary(tab); } browser->window()->Show(); + // TODO(jcampan): http://crbug.com/8123 we should not need to set the initial + // focus explicitly. + browser->GetSelectedTabContents()->SetInitialFocus(); + return browser; } -- cgit v1.1