| 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 c13f3bef8e52beb250d9cdfe400a77aacd1ed103..b05824edfae2fbcaf77298863626b21a8f515ac9 100644
|
| --- a/content/browser/web_contents/navigation_controller_impl.cc
|
| +++ b/content/browser/web_contents/navigation_controller_impl.cc
|
| @@ -600,11 +600,13 @@ void NavigationControllerImpl::GoToOffset(int offset) {
|
| GoToIndex(GetIndexForOffset(offset));
|
| }
|
|
|
| -void NavigationControllerImpl::RemoveEntryAtIndex(int index) {
|
| - if (index == last_committed_entry_index_)
|
| - return;
|
| +bool NavigationControllerImpl::RemoveEntryAtIndex(int index) {
|
| + if (index == last_committed_entry_index_ ||
|
| + index == pending_entry_index_)
|
| + return false;
|
|
|
| RemoveEntryAtIndexInternal(index);
|
| + return true;
|
| }
|
|
|
| void NavigationControllerImpl::UpdateVirtualURLToURL(
|
|
|