Chromium Code Reviews| Index: content/browser/loader/resource_dispatcher_host_impl.cc |
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc |
| index 9218ffb4fcb1ba39209ce165d9f03810dc933515..b7adcbfb30dc89e2a831a099ee5d80cb272a72ed 100644 |
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc |
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc |
| @@ -1348,8 +1348,9 @@ void ResourceDispatcherHostImpl::ContinuePendingBeginRequest( |
| bool continue_request, |
| int error_code) { |
| if (!continue_request) { |
| - bad_message::ReceivedBadMessage( |
| - filter_, static_cast<bad_message::BadMessageReason>(error_code)); |
|
Charlie Reis
2016/08/10 21:09:50
This is a bad cast, resulting in a collision with
|
| + // TODO(ananta): Find a way to specify the right error code here. Passing |
| + // in a non-content error code is not safe. |
| + bad_message::ReceivedBadMessage(filter_, bad_message::RDH_ILLEGAL_ORIGIN); |
| AbortRequestBeforeItStarts(filter_, sync_result, request_id); |
| return; |
| } |