Commit 788324e4 authored by Wan-Teh Chang's avatar Wan-Teh Chang Committed by Commit Bot

Remove unused type_hint parameter from SniffCRX()

Change-Id: Ic90d31e3791f3fedcfd3e6d20d82b6873d1577e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2155426Reviewed-by: default avatarRyan Sleevi <rsleevi@chromium.org>
Commit-Queue: Wan-Teh Chang <wtc@google.com>
Cr-Commit-Position: refs/heads/master@{#760604}
parent 7359beb1
...@@ -675,7 +675,6 @@ static bool IsUnknownMimeType(const std::string& mime_type) { ...@@ -675,7 +675,6 @@ static bool IsUnknownMimeType(const std::string& mime_type) {
static bool SniffCRX(const char* content, static bool SniffCRX(const char* content,
size_t size, size_t size,
const GURL& url, const GURL& url,
const std::string& type_hint,
bool* have_enough_content, bool* have_enough_content,
std::string* result) { std::string* result) {
// Technically, the crx magic number is just Cr24, but the bytes after that // Technically, the crx magic number is just Cr24, but the bytes after that
...@@ -812,8 +811,7 @@ bool SniffMimeType(const char* content, ...@@ -812,8 +811,7 @@ bool SniffMimeType(const char* content,
// CRX files (Chrome extensions) have a special sniffing algorithm. It is // CRX files (Chrome extensions) have a special sniffing algorithm. It is
// tighter than the others because we don't have to match legacy behavior. // tighter than the others because we don't have to match legacy behavior.
if (SniffCRX(content, content_size, url, type_hint, if (SniffCRX(content, content_size, url, &have_enough_content, result))
&have_enough_content, result))
return true; return true;
// Check the file extension and magic numbers to see if this is an Office // Check the file extension and magic numbers to see if this is an Office
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment