summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-10 20:30:34 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-10 20:30:34 +0000
commit61d74983f154e4b6d3e8501b212be6b27de3c500 (patch)
tree1cbcc9b05c45dac5151ebdcde1b24784897b9801 /chrome/browser
parentbac96616d3ffdda096b65155c7dd9c2fd3d5bc4a (diff)
downloadchromium_src-61d74983f154e4b6d3e8501b212be6b27de3c500.zip
chromium_src-61d74983f154e4b6d3e8501b212be6b27de3c500.tar.gz
chromium_src-61d74983f154e4b6d3e8501b212be6b27de3c500.tar.bz2
Give the filter setup more context so it can figure out whether it's downloading a file or not. Only refuse to gunzip svgz files on download, so we can send an uncompressed svgz file to webkit.
BUG=9737 Review URL: http://codereview.chromium.org/62111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13536 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/renderer_host/resource_dispatcher_host.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.cc b/chrome/browser/renderer_host/resource_dispatcher_host.cc
index 9538d7f..3169786 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host.cc
+++ b/chrome/browser/renderer_host/resource_dispatcher_host.cc
@@ -524,6 +524,8 @@ void ResourceDispatcherHost::BeginDownload(const GURL& url,
request->set_method("GET");
request->set_referrer(referrer.spec());
request->set_context(request_context);
+ request->set_load_flags(request->load_flags() |
+ net::LOAD_IS_DOWNLOAD);
ExtraRequestInfo* extra_info =
new ExtraRequestInfo(handler,