diff options
author | cdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-22 01:43:33 +0000 |
---|---|---|
committer | cdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-22 01:43:33 +0000 |
commit | 91f568903f5d067e7a82b2543434ba13b9dee9ef (patch) | |
tree | be24ab4ddd5fbc657bef13e3b5cf7ad83a82fcce /net/base/mime_sniffer.cc | |
parent | 31268815420a038ad43ba7808862f97a8a129801 (diff) | |
download | chromium_src-91f568903f5d067e7a82b2543434ba13b9dee9ef.zip chromium_src-91f568903f5d067e7a82b2543434ba13b9dee9ef.tar.gz chromium_src-91f568903f5d067e7a82b2543434ba13b9dee9ef.tar.bz2 |
Introduce GURL::SchemeIsHttpFamily(), which returns true for http and https.
BUG=274679
TEST=N/A
TBR=cbentzel, jamesr, simonjam, tzik, stevet, mpcomplete
Review URL: https://chromiumcodereview.appspot.com/23064011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/mime_sniffer.cc')
-rw-r--r-- | net/base/mime_sniffer.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/base/mime_sniffer.cc b/net/base/mime_sniffer.cc index cc83c7c..06034cb 100644 --- a/net/base/mime_sniffer.cc +++ b/net/base/mime_sniffer.cc @@ -804,8 +804,7 @@ bool ShouldSniffMimeType(const GURL& url, const std::string& mime_type) { UMASnifferHistogramGet("mime_sniffer.ShouldSniffMimeType2", 3); } bool sniffable_scheme = url.is_empty() || - url.SchemeIs("http") || - url.SchemeIs("https") || + url.SchemeIsHTTPOrHTTPS() || url.SchemeIs("ftp") || #if defined(OS_ANDROID) url.SchemeIs("content") || |