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 2e30d1ed3be8f0c9f5b28d401e3233dc98a36262..b1aace3597c5ecd773339efa3b2472beac3db8a7 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.cc |
+++ b/content/browser/frame_host/navigation_handle_impl.cc |
@@ -278,7 +278,7 @@ void NavigationHandleImpl::ReadyToCommitNavigation( |
void NavigationHandleImpl::DidCommitNavigation( |
bool same_page, |
RenderFrameHostImpl* render_frame_host) { |
- CHECK_IMPLIES(render_frame_host_, render_frame_host_ == render_frame_host); |
+ CHECK(!render_frame_host_ || render_frame_host_ == render_frame_host); |
is_same_page_ = same_page; |
render_frame_host_ = render_frame_host; |
state_ = net_error_code_ == net::OK ? DID_COMMIT : DID_COMMIT_ERROR_PAGE; |
@@ -287,8 +287,8 @@ void NavigationHandleImpl::DidCommitNavigation( |
NavigationThrottle::ThrottleCheckResult |
NavigationHandleImpl::CheckWillStartRequest() { |
DCHECK(state_ == WILL_SEND_REQUEST || state_ == DEFERRING_START); |
- DCHECK_IMPLIES(state_ == WILL_SEND_REQUEST, next_index_ == 0); |
- DCHECK_IMPLIES(state_ == DEFERRING_START, next_index_ != 0); |
+ DCHECK(state_ != WILL_SEND_REQUEST || next_index_ == 0); |
+ DCHECK(state_ != DEFERRING_START || next_index_ != 0); |
for (size_t i = next_index_; i < throttles_.size(); ++i) { |
NavigationThrottle::ThrottleCheckResult result = |
throttles_[i]->WillStartRequest(); |
@@ -316,8 +316,8 @@ NavigationHandleImpl::CheckWillStartRequest() { |
NavigationThrottle::ThrottleCheckResult |
NavigationHandleImpl::CheckWillRedirectRequest() { |
DCHECK(state_ == WILL_REDIRECT_REQUEST || state_ == DEFERRING_REDIRECT); |
- DCHECK_IMPLIES(state_ == WILL_REDIRECT_REQUEST, next_index_ == 0); |
- DCHECK_IMPLIES(state_ == DEFERRING_REDIRECT, next_index_ != 0); |
+ DCHECK(state_ != WILL_REDIRECT_REQUEST || next_index_ == 0); |
+ DCHECK(state_ != DEFERRING_REDIRECT || next_index_ != 0); |
for (size_t i = next_index_; i < throttles_.size(); ++i) { |
NavigationThrottle::ThrottleCheckResult result = |
throttles_[i]->WillRedirectRequest(); |