Commit 3d59b680 authored by hbono@chromium.org's avatar hbono@chromium.org

Disable sending cookies from the SpellingServiceClient class.

This change adds a load flag net::LOAD_DO_NOT_SEND_COOKIES to prevent URLFetcher from sending cookies to the Spelling service as suggested in Issue 118957. (This service does not need cookies at all.)

BUG=118957
TEST=none

Review URL: http://codereview.chromium.org/9812003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128180 0039d316-1c4b-4281-b951-d872f2087c98
parent 1f1b673a
...@@ -94,7 +94,8 @@ bool SpellingServiceClient::RequestTextCheck( ...@@ -94,7 +94,8 @@ bool SpellingServiceClient::RequestTextCheck(
url, content::URLFetcher::POST, this)); url, content::URLFetcher::POST, this));
fetcher_->SetRequestContext(context); fetcher_->SetRequestContext(context);
fetcher_->SetUploadData("application/json", request); fetcher_->SetUploadData("application/json", request);
fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES); fetcher_->SetLoadFlags(
net::LOAD_DO_NOT_SEND_COOKIES | net::LOAD_DO_NOT_SAVE_COOKIES);
fetcher_->Start(); fetcher_->Start();
tag_ = tag; tag_ = tag;
callback_ = callback; callback_ = callback;
......
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