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

Unified Diff: net/http/http_auth.cc

Issue 1414313002: Allow dynamic updating of authentication policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing Chromeos includes Created 5 years, 1 month 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.cc
diff --git a/net/http/http_auth.cc b/net/http/http_auth.cc
index 7752d743a22a356ea659577e858ad8aa3f2c017b..29de0adb205e8e0a2f6457b8928732ab76c419aa 100644
--- a/net/http/http_auth.cc
+++ b/net/http/http_auth.cc
@@ -131,12 +131,8 @@ std::string HttpAuth::GetAuthTargetString(Target target) {
// static
const char* HttpAuth::SchemeToString(Scheme scheme) {
static const char* const kSchemeNames[] = {
- "basic",
- "digest",
- "ntlm",
- "negotiate",
- "spdyproxy",
- "mock",
+ kBasicAuthScheme, kDigestAuthScheme, kNtlmAuthScheme,
+ kNegotiateAuthScheme, kSpdyProxyAuthScheme, kMockAuthScheme,
};
static_assert(arraysize(kSchemeNames) == AUTH_SCHEME_MAX,
"http auth scheme names incorrect size");

Powered by Google App Engine
This is Rietveld 408576698