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

Unified Diff: trunk/src/net/http/http_content_disposition.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | « trunk/src/net/http/http_cache_transaction.cc ('k') | trunk/src/net/http/http_log_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/http/http_content_disposition.cc
===================================================================
--- trunk/src/net/http/http_content_disposition.cc (revision 289319)
+++ trunk/src/net/http/http_content_disposition.cc (working copy)
@@ -361,9 +361,9 @@
DCHECK(std::find(type_begin, type_end, '=') == type_end);
- if (base::LowerCaseEqualsASCII(type_begin, type_end, "inline")) {
+ if (LowerCaseEqualsASCII(type_begin, type_end, "inline")) {
type_ = INLINE;
- } else if (base::LowerCaseEqualsASCII(type_begin, type_end, "attachment")) {
+ } else if (LowerCaseEqualsASCII(type_begin, type_end, "attachment")) {
type_ = ATTACHMENT;
} else {
parse_result_flags_ |= HAS_UNKNOWN_DISPOSITION_TYPE;
@@ -405,22 +405,22 @@
HttpUtil::NameValuePairsIterator iter(pos, end, ';');
while (iter.GetNext()) {
- if (filename.empty() && base::LowerCaseEqualsASCII(iter.name_begin(),
- iter.name_end(),
- "filename")) {
+ if (filename.empty() && 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() && base::LowerCaseEqualsASCII(iter.name_begin(),
- iter.name_end(),
- "name")) {
+ } else if (name.empty() && 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() &&
- base::LowerCaseEqualsASCII(iter.name_begin(), iter.name_end(),
- "filename*")) {
+ } else if (ext_filename.empty() && 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 | « trunk/src/net/http/http_cache_transaction.cc ('k') | trunk/src/net/http/http_log_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698