| Index: chrome/browser/ui/browser_tabrestore.cc
|
| diff --git a/chrome/browser/ui/browser_tabrestore.cc b/chrome/browser/ui/browser_tabrestore.cc
|
| index f939a74327c13c3394d662f3a9e7d44766a7017e..2ade2f4a7fe2b94200eafa674d6b7a0aa9810bae 100644
|
| --- a/chrome/browser/ui/browser_tabrestore.cc
|
| +++ b/chrome/browser/ui/browser_tabrestore.cc
|
| @@ -43,7 +43,8 @@ WebContents* CreateRestoredTab(
|
| const std::string& extension_app_id,
|
| bool from_last_session,
|
| content::SessionStorageNamespace* session_storage_namespace,
|
| - const std::string& user_agent_override) {
|
| + const std::string& user_agent_override,
|
| + bool initially_hidden) {
|
| GURL restore_url = navigations.at(selected_navigation).virtual_url();
|
| // TODO(ajwong): Remove the temporary session_storage_namespace_map when
|
| // we teach session restore to understand that one tab can have multiple
|
| @@ -55,6 +56,7 @@ WebContents* CreateRestoredTab(
|
| WebContents::CreateParams create_params(
|
| browser->profile(),
|
| tab_util::GetSiteInstanceForNewTab(browser->profile(), restore_url));
|
| + create_params.initially_hidden = initially_hidden;
|
| WebContents* base_web_contents =
|
| browser->tab_strip_model()->GetActiveWebContents();
|
| if (base_web_contents) {
|
| @@ -98,7 +100,8 @@ content::WebContents* AddRestoredTab(
|
| extension_app_id,
|
| from_last_session,
|
| session_storage_namespace,
|
| - user_agent_override);
|
| + user_agent_override,
|
| + !select);
|
|
|
| int add_types = select ? TabStripModel::ADD_ACTIVE
|
| : TabStripModel::ADD_NONE;
|
| @@ -144,7 +147,8 @@ content::WebContents* ReplaceRestoredTab(
|
| extension_app_id,
|
| from_last_session,
|
| session_storage_namespace,
|
| - user_agent_override);
|
| + user_agent_override,
|
| + false);
|
|
|
| // ReplaceWebContentsAt won't animate in the restoration, so manually do the
|
| // equivalent of ReplaceWebContentsAt.
|
|
|