Index: content/browser/renderer_host/resource_dispatcher_host.cc |
=================================================================== |
--- content/browser/renderer_host/resource_dispatcher_host.cc (revision 89656) |
+++ content/browser/renderer_host/resource_dispatcher_host.cc (working copy) |
@@ -495,7 +495,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(), sub, child_id, |
+ route_id); |
} |
// Make extra info and read footer (contains request ID). |
@@ -711,8 +712,9 @@ |
prompt_for_save_location, |
save_info)); |
- if (delegate_) |
- handler = delegate_->DownloadStarting(handler, child_id, route_id); |
+ if (delegate_ && context.safe_browsing_enabled()) |
Joao da Silva
2011/06/22 13:38:03
Isn't the check performed at the delegate too? It
Miranda Callahan
2011/06/22 16:25:18
Done.
|
+ handler = delegate_->DownloadStarting(handler, filter_->resource_context(), |
+ child_id, route_id); |
const net::URLRequestContext* request_context = context.request_context(); |