Send HTTP/3 SETTINGS when encryption is established.

This change is only effective on client side.

Merge instruction: patch in crrev.com/c/1790731.

gfe-relnote: v99 only, not protected.
PiperOrigin-RevId: 268026176
Change-Id: Ibd9073a5a5341f7e8ecd606069e975d2b8309085
diff --git a/quic/core/http/quic_spdy_session.cc b/quic/core/http/quic_spdy_session.cc
index 32984ca..0b42f09 100644
--- a/quic/core/http/quic_spdy_session.cc
+++ b/quic/core/http/quic_spdy_session.cc
@@ -623,11 +623,8 @@
 
 void QuicSpdySession::OnCryptoHandshakeEvent(CryptoHandshakeEvent event) {
   QuicSession::OnCryptoHandshakeEvent(event);
-  if (VersionUsesQpack(transport_version()) && event == HANDSHAKE_CONFIRMED) {
-    SendMaxHeaderListSize(max_inbound_header_list_size_);
-    return;
-  }
-  if (event == HANDSHAKE_CONFIRMED && config()->SupportMaxHeaderListSize()) {
+  if (VersionUsesQpack(transport_version()) ||
+      (event == HANDSHAKE_CONFIRMED && config()->SupportMaxHeaderListSize())) {
     SendMaxHeaderListSize(max_inbound_header_list_size_);
   }
 }