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

Unified Diff: net/quic/quic_config.cc

Issue 14411004: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use CONFIG_VERSION insteaf of VERSION Created 7 years, 8 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_config.cc
diff --git a/net/quic/quic_config.cc b/net/quic/quic_config.cc
index f16f06fde96d9942dda0a3dfa3c220479a7cd2ac..70e0b45097082cbb2f1f70f227d05be733f75f87 100644
--- a/net/quic/quic_config.cc
+++ b/net/quic/quic_config.cc
@@ -71,6 +71,8 @@ QuicErrorCode QuicConfig::ProcessFinalPeerHandshake(
CryptoUtils::Priority priority,
QuicNegotiatedParameters* out_params,
string* error_details) const {
+ DCHECK(error_details != NULL);
+
const CryptoTag* their_congestion_controls;
size_t num_their_congestion_controls;
QuicErrorCode error;
@@ -78,9 +80,7 @@ QuicErrorCode QuicConfig::ProcessFinalPeerHandshake(
error = msg.GetTaglist(kCGST, &their_congestion_controls,
&num_their_congestion_controls);
if (error != QUIC_NO_ERROR) {
- if (error_details) {
- *error_details = "Missing CGST";
- }
+ *error_details = "Missing CGST";
return error;
}
@@ -90,18 +90,14 @@ QuicErrorCode QuicConfig::ProcessFinalPeerHandshake(
priority,
&out_params->congestion_control,
NULL)) {
- if (error_details) {
- *error_details = "Unsuported CGST";
- }
+ *error_details = "Unsuported CGST";
return QUIC_CRYPTO_MESSAGE_PARAMETER_NO_OVERLAP;
}
uint32 idle;
error = msg.GetUint32(kICSL, &idle);
if (error != QUIC_NO_ERROR) {
- if (error_details) {
- *error_details = "Missing ICSL";
- }
+ *error_details = "Missing ICSL";
return error;
}
@@ -122,9 +118,7 @@ QuicErrorCode QuicConfig::ProcessFinalPeerHandshake(
out_params->keepalive_timeout = QuicTime::Delta::Zero();
break;
default:
- if (error_details) {
- *error_details = "Bad KATO";
- }
+ *error_details = "Bad KATO";
return error;
}

Powered by Google App Engine
This is Rietveld 408576698