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}
10 files changed