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

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

Issue 2508393002: Get rid of the unused Priority argument to QuicUtils::FindMutualTag. No behavior change. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | net/quic/core/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/quic_crypto_client_config.cc
diff --git a/net/quic/core/crypto/quic_crypto_client_config.cc b/net/quic/core/crypto/quic_crypto_client_config.cc
index f9899fc6ef51a61e440e14f4ef2918563fec453f..81328b0d23ce76e9978c2c7bd24c56378e205fde 100644
--- a/net/quic/core/crypto/quic_crypto_client_config.cc
+++ b/net/quic/core/crypto/quic_crypto_client_config.cc
@@ -534,12 +534,10 @@ QuicErrorCode QuicCryptoClientConfig::FillClientHello(
// client's preference.
size_t key_exchange_index;
if (!QuicUtils::FindMutualTag(aead, their_aeads, num_their_aeads,
- QuicUtils::LOCAL_PRIORITY, &out_params->aead,
- nullptr) ||
+ &out_params->aead, nullptr) ||
!QuicUtils::FindMutualTag(
kexs, their_key_exchanges, num_their_key_exchanges,
- QuicUtils::LOCAL_PRIORITY, &out_params->key_exchange,
- &key_exchange_index)) {
+ &out_params->key_exchange, &key_exchange_index)) {
*error_details = "Unsupported AEAD or KEXS";
return QUIC_CRYPTO_NO_SUPPORT;
}
@@ -554,10 +552,9 @@ QuicErrorCode QuicCryptoClientConfig::FillClientHello(
case QUIC_CRYPTO_MESSAGE_PARAMETER_NOT_FOUND:
break;
case QUIC_NO_ERROR:
- if (QuicUtils::FindMutualTag(tb_key_params, their_tbkps,
- num_their_tbkps, QuicUtils::LOCAL_PRIORITY,
- &out_params->token_binding_key_param,
- nullptr)) {
+ if (QuicUtils::FindMutualTag(
+ tb_key_params, their_tbkps, num_their_tbkps,
+ &out_params->token_binding_key_param, nullptr)) {
out->SetVector(kTBKP,
QuicTagVector{out_params->token_binding_key_param});
}
« no previous file with comments | « no previous file | net/quic/core/crypto/quic_crypto_server_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698