diff options
author | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 19:41:36 +0000 |
---|---|---|
committer | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 19:41:36 +0000 |
commit | d0a96b6e4e7cc643c2af3c9ff434edb7ff2be2f3 (patch) | |
tree | c34cfdc608065a3ad4b4cebd43d891a7da99656f /chrome/browser/renderer_host/resource_dispatcher_host.cc | |
parent | 294202d3462e9cf80c71b71a75a004844ee892b0 (diff) | |
download | chromium_src-d0a96b6e4e7cc643c2af3c9ff434edb7ff2be2f3.zip chromium_src-d0a96b6e4e7cc643c2af3c9ff434edb7ff2be2f3.tar.gz chromium_src-d0a96b6e4e7cc643c2af3c9ff434edb7ff2be2f3.tar.bz2 |
Moved the logical dependency on Blacklist from URLRequestContext
to ChromeURLRequestContext.
BUG=16932
TEST=none
Review URL: http://codereview.chromium.org/159519
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21874 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/resource_dispatcher_host.cc')
-rw-r--r-- | chrome/browser/renderer_host/resource_dispatcher_host.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.cc b/chrome/browser/renderer_host/resource_dispatcher_host.cc index 0ea39ca..a626f06 100644 --- a/chrome/browser/renderer_host/resource_dispatcher_host.cc +++ b/chrome/browser/renderer_host/resource_dispatcher_host.cc @@ -22,6 +22,7 @@ #include "chrome/browser/download/save_file_manager.h" #include "chrome/browser/external_protocol_handler.h" #include "chrome/browser/in_process_webkit/webkit_thread.h" +#include "chrome/browser/net/chrome_url_request_context.h" #include "chrome/browser/plugin_service.h" #include "chrome/browser/privacy_blacklist/blacklist.h" #include "chrome/browser/profile.h" @@ -364,10 +365,11 @@ void ResourceDispatcherHost::BeginRequest( int route_id) { ChildProcessInfo::ProcessType process_type = receiver_->type(); int process_id = receiver_->GetProcessId(); - URLRequestContext* context = - receiver_->GetRequestContext(request_id, request_data); + ChromeURLRequestContext* context = static_cast<ChromeURLRequestContext*>( + receiver_->GetRequestContext(request_id, request_data)); if (!context) - context = Profile::GetDefaultRequestContext(); + context = static_cast<ChromeURLRequestContext*>( + Profile::GetDefaultRequestContext()); if (is_shutdown_ || !ShouldServiceRequest(process_type, process_id, request_data)) { |