diff options
author | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 07:55:56 +0000 |
---|---|---|
committer | vitalybuka@chromium.org <vitalybuka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-31 07:55:56 +0000 |
commit | a285e4290d699127c06883878c5ba79a96579c6e (patch) | |
tree | 124f5a69b7306a5ee178afb336f5f7b67e05ab97 /cloud_print | |
parent | e60e6be857c091467c7115a20bc734c51f655bb0 (diff) | |
download | chromium_src-a285e4290d699127c06883878c5ba79a96579c6e.zip chromium_src-a285e4290d699127c06883878c5ba79a96579c6e.tar.gz chromium_src-a285e4290d699127c06883878c5ba79a96579c6e.tar.bz2 |
Don't send and store any cookies.
BUG=139674
TEST=none
TBR=gene@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10830086
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/service/service_state.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cloud_print/service/service_state.cc b/cloud_print/service/service_state.cc index 8007db3..29298d2 100644 --- a/cloud_print/service/service_state.cc +++ b/cloud_print/service/service_state.cc @@ -12,6 +12,7 @@ #include "base/utf_string_conversions.h" #include "net/base/escape.h" #include "net/base/io_buffer.h" +#include "net/base/load_flags.h" #include "net/url_request/url_request.h" #include "net/url_request/url_request_context.h" #include "net/url_request/url_request_context_builder.h" @@ -172,6 +173,10 @@ std::string ServiceState::LoginToGoogle(const std::string& service, post_body += "&service=" + net::EscapeUrlEncodedData(service, true); net::URLRequest request(url, &fetcher_delegate, context.get()); + int load_flags = request.load_flags(); + load_flags = load_flags | net::LOAD_DO_NOT_SEND_COOKIES; + load_flags = load_flags | net::LOAD_DO_NOT_SAVE_COOKIES; + request.set_load_flags(load_flags); request.AppendBytesToUpload(post_body.c_str(), post_body.size()); request.SetExtraRequestHeaderByName( |