[session restore] Do not pass selected index to SessionRestoreImpl::RestoreTabsToBrowser().
This CL removes the |selected_tab_index| argument from SessionRestoreImpl::RestoreTabsToBrowser(). The argument was useless since the selected tab index could simply be retrieved from the SessionWindow. Also interesting, SessionRestoreImpl::ProcessSessionWindow() passed the index of the currently active tab to SessionRestoreImpl::RestoreTabsToBrowser() when the initial tab count was zero. This was strange, but had no impact since SessionRestoreImpl::RestoreTabsToBrowser() did nothing with the value when the initial tab count was non-zero. Change-Id: I9a8e4dce2044495a3257dd14b63e1dc3a52c6643 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894466Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: François Doray <fdoray@chromium.org> Cr-Commit-Position: refs/heads/master@{#713449}
Showing
Please register or sign in to comment