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 e593397ad7282b9668ed79ff772e3fc2d35392f9..6176606cbd44d6bbaeb66e9ee368e57bcd2ac80a 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( |