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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc

Issue 2577413002: Revert of Cleanup DataReductionProxy (DRP) Brotli code (Closed)
Patch Set: Created 4 years 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
index 0a37807e2bb03372e4b2ba1aa9ffa91f3bc69dac..74d7e3abeb480d0eb2537b9251729370b2dc1026 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc
@@ -181,7 +181,8 @@
data_reduction_proxy_bypass_stats_(nullptr),
data_reduction_proxy_request_options_(request_options),
data_reduction_proxy_io_data_(nullptr),
- configurator_(configurator) {
+ configurator_(configurator),
+ exclude_chrome_proxy_header_for_testing_(false) {
DCHECK(data_reduction_proxy_config_);
DCHECK(data_reduction_proxy_request_options_);
DCHECK(configurator_);
@@ -325,7 +326,8 @@
}
MaybeAddBrotliToAcceptEncodingHeader(proxy_info, headers, *request);
- data_reduction_proxy_request_options_->AddRequestHeader(headers);
+ if (!exclude_chrome_proxy_header_for_testing_)
+ data_reduction_proxy_request_options_->AddRequestHeader(headers);
if (lofi_decider)
lofi_decider->MaybeSetIgnorePreviewsBlacklistDirective(headers);
}

Powered by Google App Engine
This is Rietveld 408576698