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

Unified Diff: net/base/mime_sniffer.cc

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 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/io_buffer.h ('k') | net/base/mime_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_sniffer.cc
diff --git a/net/base/mime_sniffer.cc b/net/base/mime_sniffer.cc
index b71e5ebe76a0e0bf82e7b0c03f08b2a79d13c25b..ff8973cedc8809f10c9fce0328dc27d835e262bb 100644
--- a/net/base/mime_sniffer.cc
+++ b/net/base/mime_sniffer.cc
@@ -345,7 +345,7 @@ static bool MatchMagicNumber(const char* content,
if (magic_entry.is_string) {
if (content_strlen >= len) {
// String comparisons are case-insensitive
- match = (base::strncasecmp(magic_entry.magic, content, len) == 0);
+ match = (strncasecmp(magic_entry.magic, content, len) == 0);
}
} else {
if (size >= len) {
@@ -405,7 +405,7 @@ static bool SniffForHTML(const char* content,
const char* const end = content + size;
const char* pos;
for (pos = content; pos < end; ++pos) {
- if (!IsAsciiWhitespace(*pos))
+ if (!base::IsAsciiWhitespace(*pos))
break;
}
static base::HistogramBase* counter(NULL);
@@ -465,8 +465,8 @@ static bool SniffForOfficeDocs(const char* content,
const char* extension =
&url_path[url_path.length() - kOfficeExtensionTypes[i].extension_len];
- if (0 == base::strncasecmp(extension, kOfficeExtensionTypes[i].extension,
- kOfficeExtensionTypes[i].extension_len)) {
+ if (0 == strncasecmp(extension, kOfficeExtensionTypes[i].extension,
+ kOfficeExtensionTypes[i].extension_len)) {
type = kOfficeExtensionTypes[i].doc_type;
break;
}
@@ -609,13 +609,12 @@ static bool SniffXML(const char* content,
return false;
if ((pos + sizeof("<?xml") - 1 <= end) &&
- (base::strncasecmp(pos, "<?xml", sizeof("<?xml") - 1) == 0)) {
+ (strncasecmp(pos, "<?xml", sizeof("<?xml") - 1) == 0)) {
// Skip XML declarations.
++pos;
continue;
} else if ((pos + sizeof("<!DOCTYPE") - 1 <= end) &&
- (base::strncasecmp(pos, "<!DOCTYPE", sizeof("<!DOCTYPE") - 1) ==
- 0)) {
+ (strncasecmp(pos, "<!DOCTYPE", sizeof("<!DOCTYPE") - 1) == 0)) {
// Skip DOCTYPE declarations.
++pos;
continue;
« no previous file with comments | « net/base/io_buffer.h ('k') | net/base/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698