Commit 33acd002 authored by jar@chromium.org's avatar jar@chromium.org

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
parent 729e7294
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment