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

Unified Diff: net/quic/core/quic_header_list.cc

Issue 2731223002: deprecate FLAGS_quic_reloadable_flag_quic_limit_uncompressed_headers (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_header_list_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_header_list.cc
diff --git a/net/quic/core/quic_header_list.cc b/net/quic/core/quic_header_list.cc
index 77b85395e44069f6e8d288e206521b28d35d477a..8b71fe7aeea9b9527bc67f0282a60f025d3340c8 100644
--- a/net/quic/core/quic_header_list.cc
+++ b/net/quic/core/quic_header_list.cc
@@ -34,8 +34,7 @@ void QuicHeaderList::OnHeaderBlockStart() {
void QuicHeaderList::OnHeader(base::StringPiece name, base::StringPiece value) {
// Avoid infinte buffering of headers. No longer store headers
// once the current headers are over the limit.
- if (!FLAGS_quic_reloadable_flag_quic_limit_uncompressed_headers ||
- uncompressed_header_bytes_ == 0 || !header_list_.empty()) {
+ if (uncompressed_header_bytes_ == 0 || !header_list_.empty()) {
header_list_.emplace_back(name.as_string(), value.as_string());
}
}
@@ -48,8 +47,7 @@ void QuicHeaderList::OnHeaderBlockEnd(size_t uncompressed_header_bytes,
size_t compressed_header_bytes) {
uncompressed_header_bytes_ = uncompressed_header_bytes;
compressed_header_bytes_ = compressed_header_bytes;
- if (FLAGS_quic_reloadable_flag_quic_limit_uncompressed_headers &&
- uncompressed_header_bytes_ > max_uncompressed_header_bytes_) {
+ if (uncompressed_header_bytes_ > max_uncompressed_header_bytes_) {
Clear();
}
}
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_header_list_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698