Chromium Code Reviews| Index: chrome/browser/sessions/session_restore.cc |
| diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc |
| index ef0a860a15f4586524ea14cdef4ff7424f1a83cc..37b1f7e62865714132bd3e89128e8ab7767e6535 100644 |
| --- a/chrome/browser/sessions/session_restore.cc |
| +++ b/chrome/browser/sessions/session_restore.cc |
| @@ -1044,14 +1044,14 @@ class SessionRestoreImpl : public content::NotificationObserver { |
| tab_index, |
| selected_index, |
| tab.extension_app_id, |
| - false, // select |
| + !schedule_load, // select |
|
oshima
2014/07/17 22:22:21
this value is computed from selected_tab_index her
sky
2014/07/18 15:42:10
I think selected would be clearer here as well as
|
| 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(web_contents->GetController().NeedsReload()); |
| + DCHECK(!schedule_load || web_contents->GetController().NeedsReload()); |
| // Set up the file access rights for the selected navigation entry. |
| const int id = web_contents->GetRenderProcessHost()->GetID(); |