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

Unified Diff: remoting/protocol/webrtc_connection_to_client.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
Index: remoting/protocol/webrtc_connection_to_client.cc
diff --git a/remoting/protocol/webrtc_connection_to_client.cc b/remoting/protocol/webrtc_connection_to_client.cc
index 60f02823a1acd68fa951e6a9366e9c5f30b5fcc5..a6fdc5b34d1725506b00453c8bf04b1ce25ec25b 100644
--- a/remoting/protocol/webrtc_connection_to_client.cc
+++ b/remoting/protocol/webrtc_connection_to_client.cc
@@ -54,7 +54,9 @@ WebrtcConnectionToClient::WebrtcConnectionToClient(
session_->SetTransport(transport_.get());
}
-WebrtcConnectionToClient::~WebrtcConnectionToClient() {}
+WebrtcConnectionToClient::~WebrtcConnectionToClient() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+}
void WebrtcConnectionToClient::SetEventHandler(
ConnectionToClient::EventHandler* event_handler) {
« no previous file with comments | « remoting/protocol/webrtc_audio_source_adapter.cc ('k') | remoting/protocol/webrtc_frame_scheduler_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698