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

Unified Diff: net/base/mime_util.cc

Issue 448853002: Move StringToLowerASCII to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « net/base/host_mapping_rules.cc ('k') | net/base/sdch_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util.cc
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc
index 0e799a64ccd32ea0b28027f5b64efd2f6b4d4bab..7dd51a2945d4556a6ce45f858546e9c60ba8af69 100644
--- a/net/base/mime_util.cc
+++ b/net/base/mime_util.cc
@@ -767,8 +767,8 @@ bool MatchesMimeTypeParameters(const std::string& mime_type_pattern,
bool MimeUtil::MatchesMimeType(const std::string& mime_type_pattern,
const std::string& mime_type) const {
// Verify caller is passing lowercase strings.
- DCHECK_EQ(StringToLowerASCII(mime_type_pattern), mime_type_pattern);
- DCHECK_EQ(StringToLowerASCII(mime_type), mime_type);
+ DCHECK_EQ(base::StringToLowerASCII(mime_type_pattern), mime_type_pattern);
+ DCHECK_EQ(base::StringToLowerASCII(mime_type), mime_type);
if (mime_type_pattern.empty())
return false;
@@ -838,7 +838,7 @@ bool MimeUtil::ParseMimeTypeWithoutParameter(
}
bool MimeUtil::IsValidTopLevelMimeType(const std::string& type_string) const {
- std::string lower_type = StringToLowerASCII(type_string);
+ std::string lower_type = base::StringToLowerASCII(type_string);
for (size_t i = 0; i < arraysize(legal_top_level_types); ++i) {
if (lower_type.compare(legal_top_level_types[i]) == 0)
return true;
@@ -1270,7 +1270,7 @@ void GetExtensionsForMimeType(
if (unsafe_mime_type == "*/*" || unsafe_mime_type == "*")
return;
- const std::string mime_type = StringToLowerASCII(unsafe_mime_type);
+ const std::string mime_type = base::StringToLowerASCII(unsafe_mime_type);
base::hash_set<base::FilePath::StringType> unique_extensions;
if (EndsWith(mime_type, "/*", true)) {
« no previous file with comments | « net/base/host_mapping_rules.cc ('k') | net/base/sdch_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698