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

Unified Diff: net/http/http_content_disposition.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the 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_cache_transaction.cc ('k') | net/http/http_log_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_content_disposition.cc
diff --git a/net/http/http_content_disposition.cc b/net/http/http_content_disposition.cc
index 3a1dedeb788077aa7ec46f87c57dd0f1ca6c60d8..8b7a90e589135299985662763c6a1b3cfb9c7438 100644
--- a/net/http/http_content_disposition.cc
+++ b/net/http/http_content_disposition.cc
@@ -361,9 +361,9 @@ std::string::const_iterator HttpContentDisposition::ConsumeDispositionType(
DCHECK(std::find(type_begin, type_end, '=') == type_end);
- if (LowerCaseEqualsASCII(type_begin, type_end, "inline")) {
+ if (base::LowerCaseEqualsASCII(type_begin, type_end, "inline")) {
type_ = INLINE;
- } else if (LowerCaseEqualsASCII(type_begin, type_end, "attachment")) {
+ } else if (base::LowerCaseEqualsASCII(type_begin, type_end, "attachment")) {
type_ = ATTACHMENT;
} else {
parse_result_flags_ |= HAS_UNKNOWN_DISPOSITION_TYPE;
@@ -405,22 +405,22 @@ void HttpContentDisposition::Parse(const std::string& header,
HttpUtil::NameValuePairsIterator iter(pos, end, ';');
while (iter.GetNext()) {
- if (filename.empty() && LowerCaseEqualsASCII(iter.name_begin(),
- iter.name_end(),
- "filename")) {
+ if (filename.empty() && base::LowerCaseEqualsASCII(iter.name_begin(),
+ iter.name_end(),
+ "filename")) {
DecodeFilenameValue(iter.value(), referrer_charset, &filename,
&parse_result_flags_);
if (!filename.empty())
parse_result_flags_ |= HAS_FILENAME;
- } else if (name.empty() && LowerCaseEqualsASCII(iter.name_begin(),
- iter.name_end(),
- "name")) {
+ } else if (name.empty() && base::LowerCaseEqualsASCII(iter.name_begin(),
+ iter.name_end(),
+ "name")) {
DecodeFilenameValue(iter.value(), referrer_charset, &name, NULL);
if (!name.empty())
parse_result_flags_ |= HAS_NAME;
- } else if (ext_filename.empty() && LowerCaseEqualsASCII(iter.name_begin(),
- iter.name_end(),
- "filename*")) {
+ } else if (ext_filename.empty() &&
+ base::LowerCaseEqualsASCII(iter.name_begin(), iter.name_end(),
+ "filename*")) {
DecodeExtValue(iter.raw_value(), &ext_filename);
if (!ext_filename.empty())
parse_result_flags_ |= HAS_EXT_FILENAME;
« no previous file with comments | « net/http/http_cache_transaction.cc ('k') | net/http/http_log_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698