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

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

Issue 1989243003: Add DRP client config tests for secure proxy check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_configurator.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc
index c7a88d98c600e5b725f8b633d41251a0933a5df1..d6e55fd627daab2b033eb2fd4808efd4bad02114 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc
@@ -74,22 +74,6 @@ void DataReductionProxyConfigurator::AddHostPatternToBypass(
bypass_rules_.push_back(pattern);
}
-void DataReductionProxyConfigurator::AddURLPatternToBypass(
- const std::string& pattern) {
- DCHECK(thread_checker_.CalledOnValidThread());
- size_t pos = pattern.find('/');
- if (pattern.find('/', pos + 1) == pos + 1)
- pos = pattern.find('/', pos + 2);
-
- std::string host_pattern;
- if (pos != std::string::npos)
- host_pattern = pattern.substr(0, pos);
- else
- host_pattern = pattern;
-
- AddHostPatternToBypass(host_pattern);
-}
-
const net::ProxyConfig& DataReductionProxyConfigurator::GetProxyConfig() const {
DCHECK(thread_checker_.CalledOnValidThread());
return config_;

Powered by Google App Engine
This is Rietveld 408576698