Stop using ExecutionContextClient::GetFrame() in History
* History is an ExecutionContextClient, so it is primarily associated with a LocalDOMWindow/ExecutionContext. Get state off of LocalDOMWindow instead of LocalFrame or Document where possible, and stop using the ExecutionContextClient::GetFrame() helper. * Add a GetHistoryItem() helper to make it cleaner to walk to the DocumentLoader to get to the HistoryItem. * Remove a bunch of unnecessary null-checks. Change-Id: I8f283586b3ecb164820481184c0fc3f84f8d5d26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2477903 Commit-Queue: Kentaro Hara <haraken@chromium.org> Auto-Submit: Nate Chapin <japhet@chromium.org> Reviewed-by:Kentaro Hara <haraken@chromium.org> Cr-Commit-Position: refs/heads/master@{#818013}
Showing
Please register or sign in to comment