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

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

Issue 2072233004: Moving utility methods in data_reduction_proxy to util namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_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 82eb6f27b2cd42542258e846fdf508187ce9d492..7b534ccb3211348f853c8ba7ca171eb8e97d6848 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
@@ -367,22 +367,23 @@ void DataReductionProxyNetworkDelegate::RecordLoFiTransformationType(
LO_FI_TRANSFORMATION_TYPES_INDEX_BOUNDARY);
}
bool DataReductionProxyNetworkDelegate::WasEligibleWithoutHoldback(
const net::URLRequest& request,
const net::ProxyInfo& proxy_info,
const net::ProxyRetryInfoMap& proxy_retry_info) const {
DCHECK(proxy_info.is_empty() || proxy_info.is_direct() ||
!data_reduction_proxy_config_->IsDataReductionProxy(
proxy_info.proxy_server().host_port_pair(), nullptr));
- if (!EligibleForDataReductionProxy(proxy_info, request.url(),
- request.method())) {
+ if (!util::EligibleForDataReductionProxy(proxy_info, request.url(),
+ request.method())) {
return false;
}
net::ProxyConfig proxy_config =
data_reduction_proxy_config_->ProxyConfigIgnoringHoldback();
net::ProxyInfo data_reduction_proxy_info;
- return ApplyProxyConfigToProxyInfo(proxy_config, proxy_retry_info,
- request.url(), &data_reduction_proxy_info);
+ return util::ApplyProxyConfigToProxyInfo(proxy_config, proxy_retry_info,
+ request.url(),
+ &data_reduction_proxy_info);
}
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698