diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 21:51:14 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 21:51:14 +0000 |
commit | a29ebbf5e6173d6c9d3118f7780b8fef7cb7d44c (patch) | |
tree | d4d8a0a36545fabe51696de674d6aefdbadbf9ab /chrome | |
parent | 46b3f00b95541ce56ea9c57faa7b86e5b2ea0a79 (diff) | |
download | chromium_src-a29ebbf5e6173d6c9d3118f7780b8fef7cb7d44c.zip chromium_src-a29ebbf5e6173d6c9d3118f7780b8fef7cb7d44c.tar.gz chromium_src-a29ebbf5e6173d6c9d3118f7780b8fef7cb7d44c.tar.bz2 |
Fix issue 5982
Change load flags of save page URLRequest from LOAD_ONLY_FROM_CACHE to LOAD_PREFERRING_CACHE so that we could save "no-cache,no-store" pages.
BUG=5982
TEST=Verify fix for issue 5982.
Review URL: http://codereview.chromium.org/371077
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/renderer_host/resource_dispatcher_host.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.cc b/chrome/browser/renderer_host/resource_dispatcher_host.cc index 7ab4a67..01aa313 100644 --- a/chrome/browser/renderer_host/resource_dispatcher_host.cc +++ b/chrome/browser/renderer_host/resource_dispatcher_host.cc @@ -798,7 +798,7 @@ void ResourceDispatcherHost::BeginSaveFile(const GURL& url, request->set_referrer(referrer.spec()); // So far, for saving page, we need fetch content from cache, in the // future, maybe we can use a configuration to configure this behavior. - request->set_load_flags(net::LOAD_ONLY_FROM_CACHE); + request->set_load_flags(net::LOAD_PREFERRING_CACHE); request->set_context(request_context); // Since we're just saving some resources we need, disallow downloading. |