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

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

Issue 958683002: Migrate most DataReductionProxyParams methods to be private. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc
index 200852e33f1b96237997d7a51151d33d56c96fa4..985dfa5e18d901fdcefe16fccd58ba193b30209b 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc
@@ -281,9 +281,8 @@ void DataReductionProxyRequestOptions::MaybeAddRequestHeaderImpl(
return;
if (data_reduction_proxy_config_ &&
data_reduction_proxy_config_->IsDataReductionProxy(proxy_server, NULL) &&
- ((data_reduction_proxy_config_->params()->ssl_origin().is_valid() &&
- data_reduction_proxy_config_->params()->ssl_origin().host_port_pair()
- .Equals(proxy_server)) == expect_ssl)) {
+ data_reduction_proxy_config_->UsingHTTPTunnel(proxy_server) ==
+ expect_ssl) {
SetHeader(request_headers);
}
}

Powered by Google App Engine
This is Rietveld 408576698