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

Unified Diff: net/http/http_log_util.cc

Issue 382313003: Add data reduction functionality to all platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove incorrect DCHECK from drp_statistics_prefs.cc Created 6 years, 3 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
« no previous file with comments | « components/precache/content/precache_manager.cc ('k') | net/http/http_log_util_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 4d0e6e98ce81d1e44c73727a4094e5c5a8784943..7e939113efe0a7e6d4540034a18ecb9a433af552 100644
--- a/net/http/http_log_util.cc
+++ b/net/http/http_log_util.cc
@@ -34,34 +34,11 @@ bool ShouldRedactChallenge(HttpAuthChallengeTokenizer* challenge) {
} // namespace
-#if defined(SPDY_PROXY_AUTH_ORIGIN)
-void ElideChromeProxyDirective(const std::string& header_value,
- const std::string& directive,
- std::string::const_iterator* redact_begin,
- std::string::const_iterator* redact_end) {
- HttpUtil::ValuesIterator it(header_value.begin(), header_value.end(), ',');
- while (it.GetNext()) {
- if (LowerCaseEqualsASCII(it.value_begin(),
- it.value_begin() + directive.size(),
- directive.c_str())) {
- *redact_begin = it.value_begin();
- *redact_end = it.value_end();
- return;
- }
- }
-}
-#endif
-
std::string ElideHeaderValueForNetLog(NetLog::LogLevel log_level,
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 defined(SPDY_PROXY_AUTH_ORIGIN)
- if (!base::strcasecmp(header.c_str(), "chrome-proxy")) {
- ElideChromeProxyDirective(value, "sid=", &redact_begin, &redact_end);
- }
-#endif
if (redact_begin == redact_end &&
log_level >= NetLog::LOG_STRIP_PRIVATE_DATA) {
« no previous file with comments | « components/precache/content/precache_manager.cc ('k') | net/http/http_log_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698