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

Unified Diff: remoting/base/chromium_url_request.cc

Issue 2792283002: Cookies disabled for ChromiumUrlRequest. (Closed)
Patch Set: Created 3 years, 9 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: remoting/base/chromium_url_request.cc
diff --git a/remoting/base/chromium_url_request.cc b/remoting/base/chromium_url_request.cc
index 67e9fb066960b64cc629f751be4560e6190193a8..e664a567f5b96927325a921e5c965691d5e4498d 100644
--- a/remoting/base/chromium_url_request.cc
+++ b/remoting/base/chromium_url_request.cc
@@ -6,6 +6,7 @@
#include "base/callback_helpers.h"
#include "base/memory/ptr_util.h"
+#include "net/base/load_flags.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_context_getter.h"
@@ -27,6 +28,8 @@ ChromiumUrlRequest::ChromiumUrlRequest(
url_fetcher_ = net::URLFetcher::Create(GURL(url), request_type, this);
url_fetcher_->SetRequestContext(url_context.get());
url_fetcher_->SetReferrer("https://chrome.google.com/remotedesktop");
+ url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
+ net::LOAD_DO_NOT_SEND_COOKIES);
}
ChromiumUrlRequest::~ChromiumUrlRequest() {}
« 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