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..d4cba6ef5c5365ba9c591f1cdaf529a3fe9ceef8 100644 |
--- a/net/http/http_log_util.cc |
+++ b/net/http/http_log_util.cc |
@@ -34,15 +34,13 @@ 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) { |
- |
+ if (redact_begin == redact_end && !capture_mode.include_private_data()) { |
eroman
2015/04/09 00:08:19
change here
|
// Note: this logic should be kept in sync with stripCookiesAndLoginInfo in |
// chrome/browser/resources/net_internals/log_view_painter.js. |