Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: net/http/http_auth_cache.cc

Issue 12582012: Implement FTP auth through proxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/url_request/url_request_ftp_job.h » ('j') | net/url_request/url_request_ftp_job.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | net/url_request/url_request_ftp_job.h » ('j') | net/url_request/url_request_ftp_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698