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

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

Issue 2326723004: Move encrypted_buffer into QuicPacketCreator::CreateAndSerializeStreamFrame. No functional change. … (Closed)
Patch Set: Created 4 years, 3 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 | « net/quic/core/quic_packet_creator_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packet_generator.cc
diff --git a/net/quic/core/quic_packet_generator.cc b/net/quic/core/quic_packet_generator.cc
index b88c970bf4cb577f8d323f49988fea773c2a2401..8f43aad5cc6d0374208ab0c73f133ed610a4bc67 100644
--- a/net/quic/core/quic_packet_generator.cc
+++ b/net/quic/core/quic_packet_generator.cc
@@ -137,11 +137,10 @@ QuicConsumedData QuicPacketGenerator::ConsumeDataFastPath(
delegate_->ShouldGeneratePacket(HAS_RETRANSMITTABLE_DATA,
NOT_HANDSHAKE)) {
// Serialize and encrypt the packet.
- ALIGNAS(64) char encrypted_buffer[kMaxPacketSize];
size_t bytes_consumed = 0;
packet_creator_.CreateAndSerializeStreamFrame(
id, iov, total_bytes_consumed, offset + total_bytes_consumed, fin,
- listener, encrypted_buffer, kMaxPacketSize, &bytes_consumed);
+ listener, &bytes_consumed);
total_bytes_consumed += bytes_consumed;
}
« no previous file with comments | « net/quic/core/quic_packet_creator_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698