summaryrefslogtreecommitdiffstats
path: root/net/base/mime_sniffer.cc
diff options
context:
space:
mode:
authorcdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-22 01:43:33 +0000
committercdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-22 01:43:33 +0000
commit91f568903f5d067e7a82b2543434ba13b9dee9ef (patch)
treebe24ab4ddd5fbc657bef13e3b5cf7ad83a82fcce /net/base/mime_sniffer.cc
parent31268815420a038ad43ba7808862f97a8a129801 (diff)
downloadchromium_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.cc3
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") ||