summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_bypass_rules.cc
diff options
context:
space:
mode:
authordavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-09 16:58:38 +0000
committerdavidben@chromium.org <davidben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-09 16:58:38 +0000
commit1a5971973b9b19d413831d2d6206770aa3529775 (patch)
tree8977b7fe20b88a56a4755cda6f05ca8ec56e6a03 /net/proxy/proxy_bypass_rules.cc
parenta11fa3437fdbb89ebe1e3a61cb4fc1de1ae4a352 (diff)
downloadchromium_src-1a5971973b9b19d413831d2d6206770aa3529775.zip
chromium_src-1a5971973b9b19d413831d2d6206770aa3529775.tar.gz
chromium_src-1a5971973b9b19d413831d2d6206770aa3529775.tar.bz2
KDE treats all host patterns as wildcard patterns
Also correct a test description that became inaccurate when we supported a reversed bypass list, and remove spaces from host rules earlier. (KDE actually treats both comma and space as valid delimiters anyway.) R=wtc,eroman BUG=48486 TEST=ProxyConfigServiceLinuxTest.KDEConfigParser Review URL: http://codereview.chromium.org/2848041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_bypass_rules.cc')
-rw-r--r--net/proxy/proxy_bypass_rules.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/proxy/proxy_bypass_rules.cc b/net/proxy/proxy_bypass_rules.cc
index 50481c4..e273d67 100644
--- a/net/proxy/proxy_bypass_rules.cc
+++ b/net/proxy/proxy_bypass_rules.cc
@@ -174,6 +174,11 @@ bool ProxyBypassRules::AddRuleFromString(const std::string& raw) {
return AddRuleFromStringInternalWithLogging(raw, false);
}
+bool ProxyBypassRules::AddRuleFromStringUsingSuffixMatching(
+ const std::string& raw) {
+ return AddRuleFromStringInternalWithLogging(raw, true);
+}
+
void ProxyBypassRules::Clear() {
rules_.clear();
}