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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 1922403002: Move bool enable_brotli from HttpNetworkSession::Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unittest fix Created 4 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 | « net/url_request/url_request_context.cc ('k') | net/url_request/url_request_http_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index e1b0ffb07bc7c91dd93d80e531f8ff16b900a28a..28f0d139b4d6383ff417781ef9b9754aceb671e2 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -711,9 +711,7 @@ void URLRequestHttpJob::AddExtraHeaders() {
// Advertise "br" encoding only if transferred data is opaque to proxy.
bool advertise_brotli = false;
- const HttpNetworkSession::Params* network_session_params =
- request()->context()->GetNetworkSessionParams();
- if (network_session_params && network_session_params->enable_brotli)
+ if (request()->context()->enable_brotli())
advertise_brotli = request()->url().SchemeIsCryptographic();
// Supply Accept-Encoding headers first so that it is more likely that they
« no previous file with comments | « net/url_request/url_request_context.cc ('k') | net/url_request/url_request_http_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698