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

Unified Diff: net/quic/chromium/quic_chromium_client_session.cc

Issue 2797443002: Check callback is run in QuicChromiumClientSession's destructor (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/chromium/quic_chromium_client_session.cc
diff --git a/net/quic/chromium/quic_chromium_client_session.cc b/net/quic/chromium/quic_chromium_client_session.cc
index 1dbabc066c5765c65d9bce8231bd6fe8b13a2e3a..607f13b099f71a3bb2cc6487290d5194f81c8ea8 100644
--- a/net/quic/chromium/quic_chromium_client_session.cc
+++ b/net/quic/chromium/quic_chromium_client_session.cc
@@ -298,6 +298,8 @@ QuicChromiumClientSession::QuicChromiumClientSession(
}
QuicChromiumClientSession::~QuicChromiumClientSession() {
+ DCHECK(callback_.is_null());
+
net_log_.EndEvent(NetLogEventType::QUIC_SESSION);
if (!dynamic_streams().empty())
RecordUnexpectedOpenStreams(DESTRUCTOR);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698