summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/sdch_dictionary_fetcher.cc
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-30 20:02:49 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-30 20:02:49 +0000
commit33acd00244c1a921d3b3f02b510c27d0ac07e990 (patch)
treebc0832328f31aeb255475383a3db078dd16da3c8 /chrome/browser/net/sdch_dictionary_fetcher.cc
parent729e7294d8d6d7fc23fe08d14769128ebd5d66c2 (diff)
downloadchromium_src-33acd00244c1a921d3b3f02b510c27d0ac07e990.zip
chromium_src-33acd00244c1a921d3b3f02b510c27d0ac07e990.tar.gz
chromium_src-33acd00244c1a921d3b3f02b510c27d0ac07e990.tar.bz2
Avoid using/setting cookies when fetching sdch dictionary
SDCH is used to fetch a dictionary for decompression, and is generally not protected (and generally has no PII). It specifically does not use SSL in handling compressed content, and so other than plausibly gathering stats, there is no reason to use, or save cookies during a dicitonary fetch. r=rtenneti bug=118952 Review URL: http://codereview.chromium.org/10271011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/sdch_dictionary_fetcher.cc')
-rw-r--r--chrome/browser/net/sdch_dictionary_fetcher.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/net/sdch_dictionary_fetcher.cc b/chrome/browser/net/sdch_dictionary_fetcher.cc
index 405f5f2..4cd1b5d 100644
--- a/chrome/browser/net/sdch_dictionary_fetcher.cc
+++ b/chrome/browser/net/sdch_dictionary_fetcher.cc
@@ -9,6 +9,7 @@
#include "base/message_loop.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/common/url_fetcher.h"
+#include "net/base/load_flags.h"
#include "net/url_request/url_request_context_getter.h"
#include "net/url_request/url_request_status.h"
@@ -69,6 +70,8 @@ void SdchDictionaryFetcher::StartFetching() {
fetch_queue_.front(), content::URLFetcher::GET, this));
fetch_queue_.pop();
current_fetch_->SetRequestContext(context_.get());
+ current_fetch_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
+ net::LOAD_DO_NOT_SAVE_COOKIES);
current_fetch_->Start();
}