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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_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_delegate.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
index 6eb2fe3e22616660ce2276e1f6e400c4373a27cb..4acb735e20f37c7786c47a06fda14e6b5677e367 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc
@@ -101,26 +101,26 @@ void OnResolveProxyHandler(const GURL& url,
const std::string& method,
int load_flags,
const net::ProxyConfig& data_reduction_proxy_config,
const net::ProxyRetryInfoMap& proxy_retry_info,
const DataReductionProxyConfig* config,
net::ProxyInfo* result) {
DCHECK(config);
DCHECK(result->is_empty() || result->is_direct() ||
!config->IsDataReductionProxy(result->proxy_server().host_port_pair(),
NULL));
- if (!EligibleForDataReductionProxy(*result, url, method))
+ if (!util::EligibleForDataReductionProxy(*result, url, method))
return;
net::ProxyInfo data_reduction_proxy_info;
- bool data_saver_proxy_used =
- ApplyProxyConfigToProxyInfo(data_reduction_proxy_config, proxy_retry_info,
- url, &data_reduction_proxy_info);
+ bool data_saver_proxy_used = util::ApplyProxyConfigToProxyInfo(
+ data_reduction_proxy_config, proxy_retry_info, url,
+ &data_reduction_proxy_info);
if (data_saver_proxy_used)
result->OverrideProxyList(data_reduction_proxy_info.proxy_list());
if (config->enabled_by_user_and_reachable() && url.SchemeIsHTTPOrHTTPS() &&
!url.SchemeIsCryptographic() && !net::IsLocalhost(url.host())) {
UMA_HISTOGRAM_BOOLEAN("DataReductionProxy.ConfigService.HTTPRequests",
data_saver_proxy_used);
}
}
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698