Index: net/http/http_auth_cache.cc |
diff --git a/net/http/http_auth_cache.cc b/net/http/http_auth_cache.cc |
index 2cc2c0ce556249576f52b298efe7536753b1bca1..fdd106a33e6673c91d7b5bb376c35e3e9fd07a35 100644 |
--- a/net/http/http_auth_cache.cc |
+++ b/net/http/http_auth_cache.cc |
@@ -42,7 +42,9 @@ bool IsEnclosingPath(const std::string& container, const std::string& path) { |
// Debug helper to check that |origin| arguments are properly formed. |
void CheckOriginIsValid(const GURL& origin) { |
DCHECK(origin.is_valid()); |
- DCHECK(origin.SchemeIs("http") || origin.SchemeIs("https")); |
+ // Note that the scheme may be FTP when we're using a HTTP proxy. |
+ DCHECK(origin.SchemeIs("http") || origin.SchemeIs("https") || |
+ origin.SchemeIs("ftp")); |
DCHECK(origin.GetOrigin() == origin); |
} |