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

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

Issue 2571993002: Cleanup DataReductionProxy (DRP) Brotli code (Closed)
Patch Set: ps 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 74d7e3abeb480d0eb2537b9251729370b2dc1026..0a37807e2bb03372e4b2ba1aa9ffa91f3bc69dac 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,8 +181,7 @@ DataReductionProxyNetworkDelegate::DataReductionProxyNetworkDelegate(
data_reduction_proxy_bypass_stats_(nullptr),
data_reduction_proxy_request_options_(request_options),
data_reduction_proxy_io_data_(nullptr),
- configurator_(configurator),
- exclude_chrome_proxy_header_for_testing_(false) {
+ configurator_(configurator) {
DCHECK(data_reduction_proxy_config_);
DCHECK(data_reduction_proxy_request_options_);
DCHECK(configurator_);
@@ -326,8 +325,7 @@ void DataReductionProxyNetworkDelegate::OnBeforeSendHeadersInternal(
}
MaybeAddBrotliToAcceptEncodingHeader(proxy_info, headers, *request);
- if (!exclude_chrome_proxy_header_for_testing_)
- data_reduction_proxy_request_options_->AddRequestHeader(headers);
+ data_reduction_proxy_request_options_->AddRequestHeader(headers);
if (lofi_decider)
lofi_decider->MaybeSetIgnorePreviewsBlacklistDirective(headers);
}

Powered by Google App Engine
This is Rietveld 408576698