| Index: net/quic/quic_client_session.cc
|
| diff --git a/net/quic/quic_client_session.cc b/net/quic/quic_client_session.cc
|
| index e52b3c32d41344b2cbd55198bf9d75abc7bcb6a1..45cdcda0e683b24eaf0f73bd4a2525e85777021c 100644
|
| --- a/net/quic/quic_client_session.cc
|
| +++ b/net/quic/quic_client_session.cc
|
| @@ -780,9 +780,21 @@ void QuicClientSession::StartReading() {
|
|
|
| void QuicClientSession::CloseSessionOnError(int error,
|
| QuicErrorCode quic_error) {
|
| + RecordAndCloseSessionOnError(error, quic_error);
|
| + NotifyFactoryOfSessionClosed();
|
| +}
|
| +
|
| +void QuicClientSession::CloseSessionOnErrorAndNotifyFactoryLater(
|
| + int error,
|
| + QuicErrorCode quic_error) {
|
| + RecordAndCloseSessionOnError(error, quic_error);
|
| + NotifyFactoryOfSessionClosedLater();
|
| +}
|
| +
|
| +void QuicClientSession::RecordAndCloseSessionOnError(int error,
|
| + QuicErrorCode quic_error) {
|
| UMA_HISTOGRAM_SPARSE_SLOWLY("Net.QuicSession.CloseSessionOnError", -error);
|
| CloseSessionOnErrorInner(error, quic_error);
|
| - NotifyFactoryOfSessionClosed();
|
| }
|
|
|
| void QuicClientSession::CloseSessionOnErrorInner(int net_error,
|
|
|