Index: content/browser/frame_host/navigation_handle_impl.cc |
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc |
index 05a6a947aa783bfdd0f5ef0c3cee5da09ad343f7..2bb284d1e86a015d37818ec7e9d589dc1aa4e87a 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.cc |
+++ b/content/browser/frame_host/navigation_handle_impl.cc |
@@ -65,7 +65,8 @@ NavigationHandleImpl::NavigationHandleImpl( |
frame_tree_node_(frame_tree_node), |
next_index_(0), |
navigation_start_(navigation_start), |
- pending_nav_entry_id_(pending_nav_entry_id) { |
+ pending_nav_entry_id_(pending_nav_entry_id), |
+ is_in_commit_(false) { |
DCHECK(!navigation_start.is_null()); |
GetDelegate()->DidStartNavigation(this); |
} |
@@ -73,6 +74,8 @@ NavigationHandleImpl::NavigationHandleImpl( |
NavigationHandleImpl::~NavigationHandleImpl() { |
GetDelegate()->DidFinishNavigation(this); |
+ CHECK(!is_in_commit_); |
+ |
// Cancel the navigation on the IO thread if the NavigationHandle is being |
// destroyed in the middle of the NavigationThrottles checks. |
if (!IsBrowserSideNavigationEnabled() && !complete_callback_.is_null()) |