Changes by ChromeSerializedNavigationDriver need to be self-consistent.
ChromeSerializedNavigationDriver::Sanitize may rewrite some session restore entries stored in sessions::SerializedNavigationEntry. Such rewrite needs to leave the data in a self-consistent state. This becomes more important now, because r698995 introduced extra DCHECKs that enforce the self-consistency. Before this CL, ChromeSerializedNavigationDriver::Sanitize would modify PageState (which contains the URL, Referrer and other pieces of data), but would not modify the referrer stored in the SerializedNavigationEntry. This CL fixes this. Bug: 1007532 Change-Id: I0e8722914f1d7a7283a1d87b26b645e058b1c18b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1825461 Commit-Queue: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#699996}
Showing
Please register or sign in to comment