diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/resource_dispatcher_host.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/browser/resource_dispatcher_host.cc b/chrome/browser/resource_dispatcher_host.cc index 9062d2b..1d1aa18 100644 --- a/chrome/browser/resource_dispatcher_host.cc +++ b/chrome/browser/resource_dispatcher_host.cc @@ -1609,6 +1609,9 @@ void ResourceDispatcherHost::BeginDownload(const GURL& url, if (is_shutdown_) return; + if (!URLRequest::IsHandledURL(url)) + return; + // Check if the renderer is permitted to request the requested URL. // // TODO(mpcomplete): remove "render_process_host_id != -1" @@ -1649,11 +1652,6 @@ void ResourceDispatcherHost::BeginDownload(const GURL& url, this); } - bool known_proto = URLRequest::IsHandledURL(url); - if (!known_proto) { - CHECK(false); - } - request->set_method("GET"); request->set_referrer(referrer.spec()); request->set_context(request_context); |