summaryrefslogtreecommitdiff
path: root/chromium/net/base/mime_sniffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/net/base/mime_sniffer.cc')
-rw-r--r--chromium/net/base/mime_sniffer.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chromium/net/base/mime_sniffer.cc b/chromium/net/base/mime_sniffer.cc
index 8e361aff8bf..acb1eba68ed 100644
--- a/chromium/net/base/mime_sniffer.cc
+++ b/chromium/net/base/mime_sniffer.cc
@@ -88,8 +88,9 @@
#include "net/base/mime_sniffer.h"
+#include "base/check_op.h"
#include "base/containers/span.h"
-#include "base/logging.h"
+#include "base/notreached.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "url/gurl.h"
@@ -675,7 +676,6 @@ static bool IsUnknownMimeType(const std::string& mime_type) {
static bool SniffCRX(const char* content,
size_t size,
const GURL& url,
- const std::string& type_hint,
bool* have_enough_content,
std::string* result) {
// Technically, the crx magic number is just Cr24, but the bytes after that
@@ -812,8 +812,7 @@ bool SniffMimeType(const char* content,
// CRX files (Chrome extensions) have a special sniffing algorithm. It is
// tighter than the others because we don't have to match legacy behavior.
- if (SniffCRX(content, content_size, url, type_hint,
- &have_enough_content, result))
+ if (SniffCRX(content, content_size, url, &have_enough_content, result))
return true;
// Check the file extension and magic numbers to see if this is an Office