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

Unified Diff: remoting/protocol/channel_socket_adapter.cc

Issue 2890833002: Adding ThreadChecker validation to d'tors for protocol classes (Closed)
Patch Set: Created 3 years, 7 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 | « remoting/protocol/capture_scheduler.cc ('k') | remoting/protocol/ice_connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/channel_socket_adapter.cc
diff --git a/remoting/protocol/channel_socket_adapter.cc b/remoting/protocol/channel_socket_adapter.cc
index 4d727f550e9c923e057d4bdba1c5d16d5c73b746..7e22b670ac588c21e17d279d40f8e3d5411d5657 100644
--- a/remoting/protocol/channel_socket_adapter.cc
+++ b/remoting/protocol/channel_socket_adapter.cc
@@ -28,6 +28,7 @@ TransportChannelSocketAdapter::TransportChannelSocketAdapter(
}
TransportChannelSocketAdapter::~TransportChannelSocketAdapter() {
+ DCHECK(thread_checker_.CalledOnValidThread());
if (!destruction_callback_.is_null())
destruction_callback_.Run();
}
« no previous file with comments | « remoting/protocol/capture_scheduler.cc ('k') | remoting/protocol/ice_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698