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

Unified Diff: net/http/http_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/http/http_response_headers.cc ('k') | net/proxy/proxy_bypass_rules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_util.cc
diff --git a/net/http/http_util.cc b/net/http/http_util.cc
index f4f994af6052f294bb52e1714cf1ca625af1cadc..224ae6c4709eff000b3ac67bc5e18955dffce29c 100644
--- a/net/http/http_util.cc
+++ b/net/http/http_util.cc
@@ -165,12 +165,12 @@ void HttpUtil::ParseContentType(const std::string& content_type_str,
mime_type->data());
if (!eq) {
mime_type->assign(begin + type_val, begin + type_end);
- StringToLowerASCII(mime_type);
+ base::StringToLowerASCII(mime_type);
}
if ((!eq && *had_charset) || type_has_charset) {
*had_charset = true;
charset->assign(begin + charset_val, begin + charset_end);
- StringToLowerASCII(charset);
+ base::StringToLowerASCII(charset);
}
}
}
@@ -328,7 +328,7 @@ const char* const kForbiddenHeaderFields[] = {
// static
bool HttpUtil::IsSafeHeader(const std::string& name) {
- std::string lower_name(StringToLowerASCII(name));
+ std::string lower_name(base::StringToLowerASCII(name));
if (StartsWithASCII(lower_name, "proxy-", true) ||
StartsWithASCII(lower_name, "sec-", true))
return false;
@@ -792,7 +792,7 @@ bool HttpUtil::HeadersIterator::GetNext() {
bool HttpUtil::HeadersIterator::AdvanceTo(const char* name) {
DCHECK(name != NULL);
- DCHECK_EQ(0, StringToLowerASCII<std::string>(name).compare(name))
+ DCHECK_EQ(0, base::StringToLowerASCII<std::string>(name).compare(name))
<< "the header name must be in all lower case";
while (GetNext()) {
« no previous file with comments | « net/http/http_response_headers.cc ('k') | net/proxy/proxy_bypass_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698