| Index: content/browser/web_contents/navigation_controller_impl.cc
|
| diff --git a/content/browser/web_contents/navigation_controller_impl.cc b/content/browser/web_contents/navigation_controller_impl.cc
|
| index 694b43d097c8370f339d2b8ed798782333c4b032..0e5952baf64d1732cb550b67d01cb4b34ba9e6b9 100644
|
| --- a/content/browser/web_contents/navigation_controller_impl.cc
|
| +++ b/content/browser/web_contents/navigation_controller_impl.cc
|
| @@ -1022,8 +1022,7 @@ void NavigationControllerImpl::RendererDidNavigateToExistingPage(
|
| //
|
| // Note that we need to use the "internal" version since we don't want to
|
| // actually change any other state, just kill the pointer.
|
| - if (pending_entry_)
|
| - DiscardNonCommittedEntriesInternal();
|
| + DiscardNonCommittedEntriesInternal();
|
|
|
| // If a transient entry was removed, the indices might have changed, so we
|
| // have to query the entry index again.
|
| @@ -1071,8 +1070,7 @@ void NavigationControllerImpl::RendererDidNavigateInPage(
|
| // This replaces the existing entry since the page ID didn't change.
|
| *did_replace_entry = true;
|
|
|
| - if (pending_entry_)
|
| - DiscardNonCommittedEntriesInternal();
|
| + DiscardNonCommittedEntriesInternal();
|
|
|
| // If a transient entry was removed, the indices might have changed, so we
|
| // have to query the entry index again.
|
|
|