Chromium Code Reviews| 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 3c6782ffd0eaeda0531c24eed45308f492cb1fa6..7ab457637cf07f1315b7dd8ff627cf515f929c51 100644 |
| --- a/content/shell/browser/shell_url_request_context_getter.cc |
| +++ b/content/shell/browser/shell_url_request_context_getter.cc |
| @@ -114,6 +114,10 @@ ShellURLRequestContextGetter::GetProxyService() { |
| std::move(proxy_config_service_), 0, url_request_context_->net_log()); |
| } |
| +bool ShellURLRequestContextGetter::ShouldEnableReferrerPolicyHeader() { |
| + return false; |
|
jochen (gone - plz use gerrit)
2016/06/29 20:44:05
nit. could be return base::CommandLine::ForCurrent
estark
2016/06/29 21:16:48
Done.
|
| +} |
| + |
| net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() { |
| DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| @@ -125,6 +129,10 @@ 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())); |