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

Unified Diff: net/http/http_auth_controller.cc

Issue 1131963003: Switch //net functions to use SchemeIsCryptographic() instead of SchemeIsSecure(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing. Created 5 years, 7 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
Index: net/http/http_auth_controller.cc
diff --git a/net/http/http_auth_controller.cc b/net/http/http_auth_controller.cc
index 9cc57de35aadec7396d8c383bc6584f93bc1fb90..8fc6c17684f204aa7fe922f3746a087e51e5bebd 100644
--- a/net/http/http_auth_controller.cc
+++ b/net/http/http_auth_controller.cc
@@ -70,12 +70,12 @@ enum AuthTarget {
AuthTarget DetermineAuthTarget(const HttpAuthHandler* handler) {
switch (handler->target()) {
case HttpAuth::AUTH_PROXY:
- if (handler->origin().SchemeIsSecure())
+ if (handler->origin().SchemeIsCryptographic())
return AUTH_TARGET_SECURE_PROXY;
else
return AUTH_TARGET_PROXY;
case HttpAuth::AUTH_SERVER:
- if (handler->origin().SchemeIsSecure())
+ if (handler->origin().SchemeIsCryptographic())
return AUTH_TARGET_SECURE_SERVER;
else
return AUTH_TARGET_SERVER;

Powered by Google App Engine
This is Rietveld 408576698