forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Nav Experiment] Use NavigationManager::Restore in SessionStorageBuilder
Added a NavigationManagerImpl::SetPreviousItemIndex() API to support the SessionStorageBuilder use case, so that CRWSessionController can be completely hidden behind the NavigationManagerImpl interface. Fixed TabModelTest's dummy session storage creation code; for empty session, lastCommittedItemIndex should be -1. Without this, the DCHECKs in LegacyNavigationManagerImpl::Restore() will fail. This was not a problem before because SessionStorageBuilder::ExtractSessionState() did not check input invariants. Tweaked input DCHECKs in LegacyNavigationManagerImpl::Restore() to allow empty session as valid input. Bug: 734150 Change-Id: I3e773347a8e5798f23888f8b757ae026fb85f2f3 Reviewed-on: https://chromium-review.googlesource.com/695830 Commit-Queue: Danyao Wang <danyao@chromium.org> Reviewed-by: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#506724}
- Loading branch information
Danyao Wang
authored and
Commit Bot
committed
Oct 5, 2017
1 parent
f820527
commit af6e87b
Showing
10 changed files
with
39 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters