Index: net/quic/crypto/quic_crypto_server_config.cc |
diff --git a/net/quic/crypto/quic_crypto_server_config.cc b/net/quic/crypto/quic_crypto_server_config.cc |
index 6bddf2b3d8fa2413b7f5cf71478b4bf035eac333..d8e8904fcae6103b229444de9cfc8fcae886540e 100644 |
--- a/net/quic/crypto/quic_crypto_server_config.cc |
+++ b/net/quic/crypto/quic_crypto_server_config.cc |
@@ -465,7 +465,7 @@ bool QuicCryptoServerConfig::SetConfigs( |
configs_.swap(new_configs); |
SelectNewPrimaryConfig(now); |
- DCHECK(primary_config_); |
+ DCHECK(primary_config_.get()); |
DCHECK_EQ(configs_.find(primary_config_->id)->second, primary_config_); |
} |
@@ -506,8 +506,8 @@ void QuicCryptoServerConfig::ValidateClientHello( |
if (!next_config_promotion_time_.IsZero() && |
next_config_promotion_time_.IsAfter(now)) { |
SelectNewPrimaryConfig(now); |
- DCHECK(primary_config_); |
- DCHECK(configs_.find(primary_config_->id)->second == primary_config_); |
+ DCHECK(primary_config_.get()); |
+ DCHECK_EQ(configs_.find(primary_config_->id)->second, primary_config_); |
} |
memcpy(primary_orbit, primary_config_->orbit, sizeof(primary_orbit)); |
@@ -579,8 +579,8 @@ QuicErrorCode QuicCryptoServerConfig::ProcessClientHello( |
if (!next_config_promotion_time_.IsZero() && |
next_config_promotion_time_.IsAfter(now)) { |
SelectNewPrimaryConfig(now); |
- DCHECK(primary_config_); |
- DCHECK(configs_.find(primary_config_->id)->second == primary_config_); |
+ DCHECK(primary_config_.get()); |
+ DCHECK_EQ(configs_.find(primary_config_->id)->second, primary_config_); |
} |
// We'll use the config that the client requested in order to do |