commit | 2ee3b922ed5a24e527fce005f02d0ce767811112 | [log] [tgz] |
---|---|---|
author | Eugene But <eugenebut@google.com> | Wed Dec 05 20:48:32 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Dec 05 20:48:32 2018 |
tree | eaeaef7828f9750155e22f4c54a4aee1eaf7dc0a | |
parent | e58ff43be711ddf8132cdb298942a87ecf1f4e79 [diff] |
Pretend there is no last committed item during the session restoration. During session restoration GetLastCommittedItem() will return null, GetLastCommittedItemIndex() will return -1 and GetLastCommittedURL() will return empty URL. This way embedder will not assume that WebState is usable during the session restoration. This CL only changes behavior for GetLastCommittedItem() and GetLastCommittedItemIndex(). GetLastCommittedItemImpl() and GetLastCommittedItemIndexImpl() are going to return last known committed value. Bug: 877671 Change-Id: Icfb16486daf79a9b579adb8360e1801f8aa0a0a0 Reviewed-on: https://chromium-review.googlesource.com/c/1359040 Reviewed-by: Danyao Wang <danyao@chromium.org> Commit-Queue: Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#614090}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .