| Index: components/domain_reliability/quic_error_mapping.cc
|
| diff --git a/components/domain_reliability/quic_error_mapping.cc b/components/domain_reliability/quic_error_mapping.cc
|
| index 3eeac49feb3b02651656c17eafdfc399cd8757ed..494b03c4cbeb7652c6876874dbf9fd6200c4fc42 100644
|
| --- a/components/domain_reliability/quic_error_mapping.cc
|
| +++ b/components/domain_reliability/quic_error_mapping.cc
|
| @@ -235,7 +235,13 @@ const struct QuicErrorMapping {
|
| { net::QUIC_LAST_ERROR, "quic.last_error"}
|
| };
|
|
|
| -static_assert(arraysize(kQuicErrorMap) == net::kActiveQuicErrorCount,
|
| +// Must be updated any time a net::QuicErrorCode is deprecated in
|
| +// net/quic/quic_protocol.h.
|
| +const int kDeprecatedQuicErrorCount = 4;
|
| +const int kActiveQuicErrorCount =
|
| + net::QUIC_LAST_ERROR - kDeprecatedQuicErrorCount;
|
| +
|
| +static_assert(arraysize(kQuicErrorMap) == kActiveQuicErrorCount,
|
| "quic_error_map is not in sync with quic protocol!");
|
|
|
| } // namespace
|
|
|