Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Unified Diff: cloud_print/service/service_state.cc

Issue 10830086: Don't send and store any cookies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/service/service_state.cc
diff --git a/cloud_print/service/service_state.cc b/cloud_print/service/service_state.cc
index 8007db3b87502d19b446194864a6e51f3eec778e..29298d2ce4778b9114b444603d0594d9f088b15a 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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698