DescriptionFix restoring individual tabs from recently closed windows.
`sessions::TabRestoreService::Tab`s get new ids when they're copied (see
the constructor at tab_restore_service.cc:40 — it delegates to the
`Entry` constructor at tab_restore_service.cc:40, which assigns a unique
id).
As a quick fix, I'm avoiding the copy. I'm planning to refactor
`sessions::TabRestoreService::Tab` and its consumers this week to get
rid of this trap.
BUG=585564
TEST=Close a window with multiple tabs. Try to restore one of them from
the history menu. With this change, it should happen.
Committed: https://crrev.com/c2aa85e42d6d85b15e46e82f2df516e2e896bd1b
Cr-Commit-Position: refs/heads/master@{#406281}
Patch Set 1 #Patch Set 2 : Testify! #
Messages
Total messages: 19 (10 generated)
|