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

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

Issue 2791343002: relnote: n/a (flag verification) (Closed)
Patch Set: 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 | « no previous file | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_framer.cc
diff --git a/net/quic/core/quic_framer.cc b/net/quic/core/quic_framer.cc
index c769b10644e5175f051fd39c7be27a1390fb6ae5..4ba2f2891a416e5a15dc5913024cc658362332d8 100644
--- a/net/quic/core/quic_framer.cc
+++ b/net/quic/core/quic_framer.cc
@@ -22,6 +22,7 @@
#include "net/quic/core/quic_utils.h"
#include "net/quic/platform/api/quic_aligned.h"
#include "net/quic/platform/api/quic_bug_tracker.h"
+#include "net/quic/platform/api/quic_flag_utils.h"
#include "net/quic/platform/api/quic_logging.h"
#include "net/quic/platform/api/quic_map_util.h"
#include "net/quic/platform/api/quic_ptr_util.h"
@@ -776,6 +777,9 @@ bool QuicFramer::ProcessPublicHeader(QuicDataReader* reader,
public_flags > (FLAGS_quic_reloadable_flag_quic_remove_multipath_bit
? PACKET_PUBLIC_FLAGS_MAX_WITHOUT_MULTIPATH_FLAG
: PACKET_PUBLIC_FLAGS_MAX)) {
+ if (FLAGS_quic_reloadable_flag_quic_remove_multipath_bit) {
+ QUIC_FLAG_COUNT_N(quic_reloadable_flag_quic_remove_multipath_bit, 1, 2);
+ }
set_detailed_error("Illegal public flags value.");
return false;
}
@@ -820,6 +824,9 @@ bool QuicFramer::ProcessPublicHeader(QuicDataReader* reader,
public_flags > (FLAGS_quic_reloadable_flag_quic_remove_multipath_bit
? PACKET_PUBLIC_FLAGS_MAX_WITHOUT_MULTIPATH_FLAG
: PACKET_PUBLIC_FLAGS_MAX)) {
+ if (FLAGS_quic_reloadable_flag_quic_remove_multipath_bit) {
+ QUIC_FLAG_COUNT_N(quic_reloadable_flag_quic_remove_multipath_bit, 1, 2);
+ }
set_detailed_error("Illegal public flags value.");
return false;
}
« no previous file with comments | « no previous file | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698