Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
index 720836f61618f515aa36e1e1adb76dcd65d3cb51..7ad5e8660e14518f167849a606057f4516261494 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc |
@@ -482,8 +482,8 @@ void SafeBrowsingBlockingPage::OnDontProceed() { |
if (navigation_entry_index_to_remove_ != -1 && |
navigation_entry_index_to_remove_ != last_committed_index && |
!web_contents_->IsBeingDestroyed()) { |
- web_contents_->GetController().RemoveEntryAtIndex( |
- navigation_entry_index_to_remove_); |
+ CHECK(web_contents_->GetController().RemoveEntryAtIndex( |
+ navigation_entry_index_to_remove_)); |
navigation_entry_index_to_remove_ = -1; |
} |
} |