Commit 0d85a140 authored by oshima@chromium.org's avatar oshima@chromium.org

Revert 284870 "Set the web content's initial size only if the ta..."

> Set the web content's initial size only if the tab isn't selected in session restore.
> 
> BUG=378924
> 
> Review URL: https://codereview.chromium.org/392293002

TBR=oshima@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288100 0039d316-1c4b-4281-b951-d872f2087c98
parent 41220b74
......@@ -1044,14 +1044,14 @@ class SessionRestoreImpl : public content::NotificationObserver {
tab_index,
selected_index,
tab.extension_app_id,
is_selected_tab, // select
false, // select
tab.pinned,
true,
session_storage_namespace.get(),
tab.user_agent_override);
// Regression check: check that the tab didn't start loading right away. The
// focused tab will be loaded by Browser, and TabLoader will load the rest.
DCHECK(is_selected_tab || web_contents->GetController().NeedsReload());
DCHECK(web_contents->GetController().NeedsReload());
// Set up the file access rights for the selected navigation entry.
const int id = web_contents->GetRenderProcessHost()->GetID();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment