Index: net/quic/quic_packet_generator.cc |
diff --git a/net/quic/quic_packet_generator.cc b/net/quic/quic_packet_generator.cc |
index f83dfb63b9b9ec0d0ba6f279f76e8a0477620d57..35369a40362cf0ace73ecab09d1bf5a360754463 100644 |
--- a/net/quic/quic_packet_generator.cc |
+++ b/net/quic/quic_packet_generator.cc |
@@ -238,6 +238,11 @@ void QuicPacketGenerator::StopSendingVersion() { |
packet_creator_.StopSendingVersion(); |
} |
+void QuicPacketGenerator::SetDiversificationNonce( |
+ const DiversificationNonce nonce) { |
+ packet_creator_.SetDiversificationNonce(nonce); |
+} |
+ |
QuicPacketNumber QuicPacketGenerator::packet_number() const { |
return packet_creator_.packet_number(); |
} |
@@ -273,10 +278,6 @@ void QuicPacketGenerator::UpdateSequenceNumberLength( |
void QuicPacketGenerator::SetConnectionIdLength(uint32_t length) { |
if (length == 0) { |
packet_creator_.set_connection_id_length(PACKET_0BYTE_CONNECTION_ID); |
- } else if (length == 1) { |
- packet_creator_.set_connection_id_length(PACKET_1BYTE_CONNECTION_ID); |
- } else if (length <= 4) { |
- packet_creator_.set_connection_id_length(PACKET_4BYTE_CONNECTION_ID); |
} else { |
packet_creator_.set_connection_id_length(PACKET_8BYTE_CONNECTION_ID); |
} |