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 d692b7d83142b283c8d044219ca6a9a4a04c4259..c8218af7f0a256d887d420ef1c6c9847cd63331f 100644 |
--- a/content/browser/web_contents/navigation_controller_impl.cc |
+++ b/content/browser/web_contents/navigation_controller_impl.cc |
@@ -1405,12 +1405,11 @@ void NavigationControllerImpl::PruneAllButActive() { |
// If there is an entry left, we need to update the session history length of |
// the RenderView. |
- if (!GetEntryCount()) |
+ if (!GetActiveEntry()) |
return; |
NavigationEntryImpl* entry = |
NavigationEntryImpl::FromNavigationEntry(GetActiveEntry()); |
- CHECK(entry); |
// We pass 0 instead of GetEntryCount() for the history_length parameter of |
// SetHistoryLengthAndPrune, because it will create history_length additional |
// history entries. |