From 955093110ad64d5ec6f5426991efaa4a680b5d6f Mon Sep 17 00:00:00 2001 From: brettw Date: Thu, 16 Jul 2015 16:57:33 -0700 Subject: Remove legacy StartsWithASCII function. This replaces it with base::StartsWith and the appropriate case flag. Since the existing version only ever did case-insensitive tests in ASCII, there should be no behavior change. BUG=506255 TBR=jam Review URL: https://codereview.chromium.org/1242023005 Cr-Commit-Position: refs/heads/master@{#339175} --- .../content_settings/core/common/content_settings_pattern_parser.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/content_settings') diff --git a/components/content_settings/core/common/content_settings_pattern_parser.cc b/components/content_settings/core/common/content_settings_pattern_parser.cc index cbdd260..7a5ca79 100644 --- a/components/content_settings/core/common/content_settings_pattern_parser.cc +++ b/components/content_settings/core/common/content_settings_pattern_parser.cc @@ -130,7 +130,8 @@ void PatternParser::Parse(const std::string& pattern_spec, host_component.len); if (host == kHostWildcard) { builder->WithDomainWildcard(); - } else if (base::StartsWithASCII(host, kDomainWildcard, true)) { + } else if (base::StartsWith(host, kDomainWildcard, + base::CompareCase::SENSITIVE)) { host = host.substr(kDomainWildcardLength); builder->WithDomainWildcard(); builder->WithHost(host); -- cgit v1.1