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

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

Issue 2334363002: Landing Recent QUIC changes until Sat Sep 10 00:32:41 (Closed)
Patch Set: Revase 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.h ('k') | net/quic/core/quic_packet_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packet_creator.cc
diff --git a/net/quic/core/quic_packet_creator.cc b/net/quic/core/quic_packet_creator.cc
index 847ff6ebd63872277dc7b69f8aab9286c1c67acf..a98afd25865c9301a2b6f740851065bb3cb759af 100644
--- a/net/quic/core/quic_packet_creator.cc
+++ b/net/quic/core/quic_packet_creator.cc
@@ -106,10 +106,10 @@ void QuicPacketCreator::StopSendingVersion() {
}
void QuicPacketCreator::SetDiversificationNonce(
- const DiversificationNonce nonce) {
+ const DiversificationNonce& nonce) {
DCHECK(!have_diversification_nonce_);
have_diversification_nonce_ = true;
- memcpy(&diversification_nonce_, nonce, sizeof(diversification_nonce_));
+ diversification_nonce_ = nonce;
}
void QuicPacketCreator::UpdatePacketNumberLength(
« no previous file with comments | « net/quic/core/quic_packet_creator.h ('k') | net/quic/core/quic_packet_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698