Index: net/quic/quic_connection.cc |
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc |
index b3e8b3df9820f871dcb474f538bf1ba1c192547b..e6a3d8ce71f674fc32951ec444ced242856de482 100644 |
--- a/net/quic/quic_connection.cc |
+++ b/net/quic/quic_connection.cc |
@@ -324,11 +324,13 @@ void QuicConnection::OnSendConnectionState( |
} |
bool QuicConnection::ResumeConnectionState( |
- const CachedNetworkParameters& cached_network_params) { |
+ const CachedNetworkParameters& cached_network_params, |
+ bool max_bandwidth_resumption) { |
if (debug_visitor_ != nullptr) { |
debug_visitor_->OnResumeConnectionState(cached_network_params); |
} |
- return sent_packet_manager_.ResumeConnectionState(cached_network_params); |
+ return sent_packet_manager_.ResumeConnectionState(cached_network_params, |
+ max_bandwidth_resumption); |
} |
void QuicConnection::SetNumOpenStreams(size_t num_streams) { |
@@ -1905,6 +1907,7 @@ void QuicConnection::CloseConnection(QuicErrorCode error, bool from_peer) { |
if (debug_visitor_ != nullptr) { |
debug_visitor_->OnConnectionClosed(error, from_peer); |
} |
+ DCHECK(visitor_ != nullptr); |
visitor_->OnConnectionClosed(error, from_peer); |
// Cancel the alarms so they don't trigger any action now that the |
// connection is closed. |