Avoid unnecessary casts in NavigationControllerImpl.
This will avoid further casts as we refactor session history for OOPIFs.
BUG=236848
TEST=No behavior change.
Review URL: https://codereview.chromium.org/949473002
Cr-Commit-Position: refs/heads/master@{#317402}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 62deecd..ed67922 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1960,8 +1960,7 @@
// is currently only used in --site-per-process and tests.
// TODO(creis): Remove this method and NavigationEntryImpl::frame_tree_node_id
// by using FrameNavigationEntries instead. See https://crbug.com/236848.
- NavigationEntryImpl* pending_entry =
- NavigationEntryImpl::FromNavigationEntry(controller_.GetPendingEntry());
+ NavigationEntryImpl* pending_entry = controller_.GetPendingEntry();
if (pending_entry->frame_tree_node_id() != -1) {
FrameTreeNode* subframe =
frame_tree_.FindByID(pending_entry->frame_tree_node_id());