Index: net/http/http_log_util.cc |
diff --git a/net/http/http_log_util.cc b/net/http/http_log_util.cc |
index 7e939113efe0a7e6d4540034a18ecb9a433af552..0467fb605ab40ca7a5f4eeacd5c28bcbcc635ada 100644 |
--- a/net/http/http_log_util.cc |
+++ b/net/http/http_log_util.cc |
@@ -34,15 +34,14 @@ bool ShouldRedactChallenge(HttpAuthChallengeTokenizer* challenge) { |
} // namespace |
-std::string ElideHeaderValueForNetLog(NetLog::LogLevel log_level, |
+std::string ElideHeaderValueForNetLog(NetLogCaptureMode capture_mode, |
const std::string& header, |
const std::string& value) { |
std::string::const_iterator redact_begin = value.begin(); |
std::string::const_iterator redact_end = value.begin(); |
if (redact_begin == redact_end && |
- log_level >= NetLog::LOG_STRIP_PRIVATE_DATA) { |
- |
+ !capture_mode.include_cookies_and_credentials()) { |
// Note: this logic should be kept in sync with stripCookiesAndLoginInfo in |
// chrome/browser/resources/net_internals/log_view_painter.js. |