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

Unified Diff: net/http/http_log_util.cc

Issue 1414313002: Allow dynamic updating of authentication policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to cbentzel@'s comments. Created 5 years 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 | « net/http/http_auth_unittest.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_log_util.cc
diff --git a/net/http/http_log_util.cc b/net/http/http_log_util.cc
index 500f2209da24b4e5457ff82005ba6dec396622e1..8146f0d6b17a55d7a2a56293a4b37dd731872fe0 100644
--- a/net/http/http_log_util.cc
+++ b/net/http/http_log_util.cc
@@ -8,6 +8,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "net/http/http_auth_challenge_tokenizer.h"
+#include "net/http/http_auth_scheme.h"
#include "net/http/http_util.h"
namespace net {
@@ -27,7 +28,7 @@ bool ShouldRedactChallenge(HttpAuthChallengeTokenizer* challenge) {
// Ignore Basic and Digest authentication challenges, as they contain
// public information.
- if (scheme == "basic" || scheme == "digest")
+ if (scheme == kBasicAuthScheme || scheme == kDigestAuthScheme)
return false;
return true;
« no previous file with comments | « net/http/http_auth_unittest.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698