Chromium Code Reviews| Index: content/browser/renderer_host/resource_dispatcher_host.cc |
| =================================================================== |
| --- content/browser/renderer_host/resource_dispatcher_host.cc (revision 90024) |
| +++ content/browser/renderer_host/resource_dispatcher_host.cc (working copy) |
| @@ -494,7 +494,8 @@ |
| if (delegate_) { |
| bool sub = request_data.resource_type != ResourceType::MAIN_FRAME; |
| handler = delegate_->RequestBeginning( |
| - handler, request, sub, child_id, route_id); |
| + handler, request, filter_->resource_context().safe_browsing_enabled(), |
| + sub, child_id, route_id); |
|
Joao da Silva
2011/06/24 14:32:04
resource_context is a local reference to filter_->
Miranda Callahan
2011/07/07 17:35:50
Indentation fixed; safe_browsing_enabled call chan
|
| } |
| // Make extra info and read footer (contains request ID). |
| @@ -710,8 +711,12 @@ |
| prompt_for_save_location, |
| save_info)); |
| - if (delegate_) |
| - handler = delegate_->DownloadStarting(handler, child_id, route_id); |
| + if (delegate_) { |
| + handler = delegate_->DownloadStarting( |
| + handler, |
| + filter_->resource_context().safe_browsing_enabled(), |
| + child_id, route_id); |
| + } |
| const net::URLRequestContext* request_context = context.request_context(); |