Use QuicVersionUsesCryptoFrames instead of checking against QUIC_VERSION_47
gfe-relnote: refactor QUIC_VERSION_47 checks. No behavior change
PiperOrigin-RevId: 237924704
Change-Id: Iaf70e71f64fbcc51f500e3919c2f026b146d7ab6
diff --git a/quic/core/quic_crypto_server_handshaker.cc b/quic/core/quic_crypto_server_handshaker.cc
index fb24fed..0d16354 100644
--- a/quic/core/quic_crypto_server_handshaker.cc
+++ b/quic/core/quic_crypto_server_handshaker.cc
@@ -310,7 +310,7 @@
QUIC_DVLOG(1) << "Server: Sending server config update: "
<< message.DebugString();
- if (transport_version() < QUIC_VERSION_47) {
+ if (!QuicVersionUsesCryptoFrames(transport_version())) {
const QuicData& data = message.GetSerialized();
stream_->WriteOrBufferData(QuicStringPiece(data.data(), data.length()),
false, nullptr);