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

Unified Diff: net/quic/crypto/quic_crypto_client_config.cc

Issue 312193005: Pass chrome version and channel in CHLO message to server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/crypto/quic_crypto_client_config.cc
diff --git a/net/quic/crypto/quic_crypto_client_config.cc b/net/quic/crypto/quic_crypto_client_config.cc
index f9b31fd57b5e73e0203ce1ef4512b4d6fd1618b0..b519b704e267fa634b9190804f666dc40a79c88d 100644
--- a/net/quic/crypto/quic_crypto_client_config.cc
+++ b/net/quic/crypto/quic_crypto_client_config.cc
@@ -305,6 +305,10 @@ void QuicCryptoClientConfig::FillInchoateClientHello(
}
out->SetValue(kVER, QuicVersionToQuicTag(preferred_version));
+ if (!client_version_.empty()) {
+ out->SetStringPiece(kCVER, client_version_);
+ }
+
if (!cached->source_address_token().empty()) {
out->SetStringPiece(kSourceAddressTokenTag, cached->source_address_token());
}

Powered by Google App Engine
This is Rietveld 408576698