| Index: content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/renderer_host/resource_dispatcher_host_impl.cc b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| index fcb5893e2ce1e11b43cf90f795a1ea7ba9f2eb55..da6df33643f058c5268c5bbe093d5e6c8a1b130a 100644
|
| --- a/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| @@ -889,6 +889,8 @@ void ResourceDispatcherHostImpl::BeginRequest(
|
| }
|
| }
|
|
|
| + bool allow_download = request_data.allow_download &&
|
| + ResourceType::IsFrame(request_data.resource_type);
|
| // Make extra info and read footer (contains request ID).
|
| ResourceRequestInfoImpl* extra_info =
|
| new ResourceRequestInfoImpl(
|
| @@ -906,7 +908,7 @@ void ResourceDispatcherHostImpl::BeginRequest(
|
| request_data.transition_type,
|
| upload_size,
|
| false, // is download
|
| - ResourceType::IsFrame(request_data.resource_type), // allow_download
|
| + allow_download,
|
| request_data.has_user_gesture,
|
| request_data.referrer_policy,
|
| resource_context);
|
|
|