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

Unified Diff: net/quic/quic_crypto_server_stream.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
Index: net/quic/quic_crypto_server_stream.cc
diff --git a/net/quic/quic_crypto_server_stream.cc b/net/quic/quic_crypto_server_stream.cc
index 63070cd23c7273e0f7b37fd2458fe4fb197386fc..3ec65b0ecfb66bd887258937816be45e8bdbc08e 100644
--- a/net/quic/quic_crypto_server_stream.cc
+++ b/net/quic/quic_crypto_server_stream.cc
@@ -19,8 +19,6 @@ using std::string;
namespace net {
void ServerHelloNotifier::OnAckNotification(
- int num_original_packets,
- int num_original_bytes,
int num_retransmitted_packets,
int num_retransmitted_bytes,
QuicTime::Delta delta_largest_observed) {
@@ -130,13 +128,9 @@ void QuicCryptoServerStream::FinishProcessingHandshakeMessage(
// We want to be notified when the SHLO is ACKed so that we can disable
// HANDSHAKE_MODE in the sent packet manager.
- if (session()->connection()->version() <= QUIC_VERSION_21) {
- SendHandshakeMessage(reply);
- } else {
- scoped_refptr<ServerHelloNotifier> server_hello_notifier(
- new ServerHelloNotifier(this));
- SendHandshakeMessage(reply, server_hello_notifier.get());
- }
+ scoped_refptr<ServerHelloNotifier> server_hello_notifier(
+ new ServerHelloNotifier(this));
+ SendHandshakeMessage(reply, server_hello_notifier.get());
session()->connection()->SetEncrypter(
ENCRYPTION_FORWARD_SECURE,
@@ -152,8 +146,7 @@ void QuicCryptoServerStream::FinishProcessingHandshakeMessage(
void QuicCryptoServerStream::SendServerConfigUpdate(
const CachedNetworkParameters* cached_network_params) {
- if (session()->connection()->version() <= QUIC_VERSION_21 ||
- !handshake_confirmed_) {
+ if (!handshake_confirmed_) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698