| 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 c20e6bd5656d752813bcb5d31c12cdcbdc862b7e..0a714ef410dce6787ef148c05c66c907b060012c 100644
|
| --- a/content/browser/frame_host/navigation_handle_impl.cc
|
| +++ b/content/browser/frame_host/navigation_handle_impl.cc
|
| @@ -695,9 +695,9 @@ NavigationHandleImpl::CheckWillStartRequest() {
|
| case NavigationThrottle::PROCEED:
|
| continue;
|
|
|
| + case NavigationThrottle::BLOCK_REQUEST:
|
| case NavigationThrottle::CANCEL:
|
| case NavigationThrottle::CANCEL_AND_IGNORE:
|
| - case NavigationThrottle::BLOCK_REQUEST:
|
| state_ = CANCELING;
|
| return result;
|
|
|
| @@ -727,6 +727,9 @@ NavigationHandleImpl::CheckWillRedirectRequest() {
|
| case NavigationThrottle::PROCEED:
|
| continue;
|
|
|
| + case NavigationThrottle::BLOCK_REQUEST:
|
| + CHECK(IsBrowserSideNavigationEnabled())
|
| + << "BLOCK_REQUEST must not be used on redirect without PlzNavigate";
|
| case NavigationThrottle::CANCEL:
|
| case NavigationThrottle::CANCEL_AND_IGNORE:
|
| state_ = CANCELING;
|
| @@ -737,7 +740,6 @@ NavigationHandleImpl::CheckWillRedirectRequest() {
|
| next_index_ = i + 1;
|
| return result;
|
|
|
| - case NavigationThrottle::BLOCK_REQUEST:
|
| case NavigationThrottle::BLOCK_RESPONSE:
|
| NOTREACHED();
|
| }
|
|
|