Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1552)

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 949473002: Avoid unnecessary casts in NavigationControllerImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 62deecd922ed2890dd26c19932aac7c34d2c72ea..ed679224852e6b4631a4335b32c695015be47e3e 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1960,8 +1960,7 @@ bool WebContentsImpl::NavigateToPendingEntry(
// 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());

Powered by Google App Engine
This is Rietveld 408576698