| Index: content/browser/web_contents/navigation_controller_impl.cc
|
| ===================================================================
|
| --- content/browser/web_contents/navigation_controller_impl.cc (revision 170537)
|
| +++ content/browser/web_contents/navigation_controller_impl.cc (working copy)
|
| @@ -1022,8 +1022,7 @@
|
| //
|
| // 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 @@
|
| // 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.
|
|
|