diff options
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/mime_util.cc | 4 | ||||
-rw-r--r-- | net/base/net_util.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc index 4468fc4..dee8892 100644 --- a/net/base/mime_util.cc +++ b/net/base/mime_util.cc @@ -286,7 +286,7 @@ bool MimeUtil::MatchesMimeType(const std::string& mime_type_pattern, if (!base::StartsWithASCII(base_type, left, false)) return false; - if (!right.empty() && !EndsWith(base_type, right, false)) + if (!right.empty() && !base::EndsWith(base_type, right, false)) return false; return MatchesMimeTypeParameters(mime_type_pattern, mime_type); @@ -521,7 +521,7 @@ void GetExtensionsForMimeType( const std::string mime_type = base::StringToLowerASCII(unsafe_mime_type); base::hash_set<base::FilePath::StringType> unique_extensions; - if (EndsWith(mime_type, "/*", false)) { + if (base::EndsWith(mime_type, "/*", false)) { std::string leading_mime_type = mime_type.substr(0, mime_type.length() - 1); // Find the matching StandardType from within kStandardTypes, or fall diff --git a/net/base/net_util.cc b/net/base/net_util.cc index 04733a8..2239cc4 100644 --- a/net/base/net_util.cc +++ b/net/base/net_util.cc @@ -794,7 +794,7 @@ bool HasGoogleHost(const GURL& url) { }; const std::string& host = url.host(); for (const char* suffix : kGoogleHostSuffixes) { - if (EndsWith(host, suffix, false)) + if (base::EndsWith(host, suffix, false)) return true; } return false; |