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

Unified Diff: remoting/protocol/webrtc_frame_scheduler_simple.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/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_frame_scheduler_simple.cc
diff --git a/remoting/protocol/webrtc_frame_scheduler_simple.cc b/remoting/protocol/webrtc_frame_scheduler_simple.cc
index 526ba6125a28cbd40a324bc501a02a7ccefe4f94..3d9e6a477059797d47413529ef73253e36e28d6f 100644
--- a/remoting/protocol/webrtc_frame_scheduler_simple.cc
+++ b/remoting/protocol/webrtc_frame_scheduler_simple.cc
@@ -128,7 +128,9 @@ WebrtcFrameSchedulerSimple::WebrtcFrameSchedulerSimple()
updated_region_area_(kStatsWindow),
weak_factory_(this) {}
-WebrtcFrameSchedulerSimple::~WebrtcFrameSchedulerSimple() {}
+WebrtcFrameSchedulerSimple::~WebrtcFrameSchedulerSimple() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+}
void WebrtcFrameSchedulerSimple::OnKeyFrameRequested() {
DCHECK(thread_checker_.CalledOnValidThread());
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.cc ('k') | remoting/protocol/webrtc_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698