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

Unified Diff: content/browser/media/url_provision_fetcher.cc

Issue 2804563002: Cookies disabled for url_provision_fetcher. (Closed)
Patch Set: Created 3 years, 8 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: content/browser/media/url_provision_fetcher.cc
diff --git a/content/browser/media/url_provision_fetcher.cc b/content/browser/media/url_provision_fetcher.cc
index b3a241fa073e6eb8d211ad0dcc48204c97e0932b..2892152f2e81dff7960aa7aa42a76e44d3fff6fb 100644
--- a/content/browser/media/url_provision_fetcher.cc
+++ b/content/browser/media/url_provision_fetcher.cc
@@ -7,6 +7,7 @@
#include "base/memory/ptr_util.h"
#include "content/public/browser/provision_fetcher_factory.h"
#include "media/base/bind_to_current_loop.h"
+#include "net/base/load_flags.h"
#include "net/url_request/url_fetcher.h"
using net::URLFetcher;
@@ -38,6 +39,8 @@ void URLProvisionFetcher::Retrieve(
request_->SetUploadData("", "");
request_->AddExtraRequestHeader("User-Agent: Widevine CDM v1.0");
request_->AddExtraRequestHeader("Content-Type: application/json");
+ request_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
+ net::LOAD_DO_NOT_SEND_COOKIES);
DCHECK(context_getter_);
request_->SetRequestContext(context_getter_);
« 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