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

Unified Diff: content/shell/browser/shell_url_request_context_getter.cc

Issue 2399643002: Ship Referrer-Policy header (Closed)
Patch Set: remove some more missed ShouldEnableReferrerPolicyHeader() spots Created 4 years, 2 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 | « content/shell/browser/shell_url_request_context_getter.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell_url_request_context_getter.cc
diff --git a/content/shell/browser/shell_url_request_context_getter.cc b/content/shell/browser/shell_url_request_context_getter.cc
index e60bb470f11262a3615828cd9227e1c4e6e41211..ec7207a010cd18df63109bd3cb78b4ee50debdbe 100644
--- a/content/shell/browser/shell_url_request_context_getter.cc
+++ b/content/shell/browser/shell_url_request_context_getter.cc
@@ -113,11 +113,6 @@ ShellURLRequestContextGetter::GetProxyService() {
std::move(proxy_config_service_), 0, url_request_context_->net_log());
}
-bool ShellURLRequestContextGetter::ShouldEnableReferrerPolicyHeader() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalWebPlatformFeatures);
-}
-
net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
@@ -129,10 +124,6 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
url_request_context_->set_net_log(net_log_);
network_delegate_ = CreateNetworkDelegate();
url_request_context_->set_network_delegate(network_delegate_.get());
- // TODO(estark): Remove this once the Referrer-Policy header is no
- // longer an experimental feature. https://crbug.com/619228
- url_request_context_->set_enable_referrer_policy_header(
- ShouldEnableReferrerPolicyHeader());
storage_.reset(
new net::URLRequestContextStorage(url_request_context_.get()));
storage_->set_cookie_store(CreateCookieStore(CookieStoreConfig()));
« no previous file with comments | « content/shell/browser/shell_url_request_context_getter.h ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698