| Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
| diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
| index 237ccc7800a9a39c18aa603224b7e497556aa7d9..f9d37252fce1ad2dfd12e0f6955db38bd798fd77 100644
|
| --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
| +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
|
| @@ -447,8 +447,16 @@ Browser* StartupBrowserCreatorImpl::OpenTabsInBrowser(Browser* browser,
|
| if (!profile_ && browser)
|
| profile_ = browser->profile();
|
|
|
| - if (!browser || !browser->is_type_tabbed())
|
| - browser = new Browser(Browser::CreateParams(profile_));
|
| + if (!browser || !browser->is_type_tabbed()) {
|
| + // Startup browsers are not counted as being created by a user_gesture
|
| + // because of historical accident, even though the startup browser was
|
| + // created in response to the user clicking on chrome. There was an
|
| + // incomplete check on whether a user gesture created a window which looked
|
| + // at the state of the MessageLoop.
|
| + Browser::CreateParams params = Browser::CreateParams(profile_);
|
| + params.user_gesture = false;
|
| + browser = new Browser(params);
|
| + }
|
|
|
| bool first_tab = true;
|
| ProtocolHandlerRegistry* registry = profile_ ?
|
|
|