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

Unified Diff: remoting/protocol/audio_decode_scheduler.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 | « no previous file | remoting/protocol/capture_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/audio_decode_scheduler.cc
diff --git a/remoting/protocol/audio_decode_scheduler.cc b/remoting/protocol/audio_decode_scheduler.cc
index f251e5be329d03c7a6c99c21cc76fe50785fd672..996453866a522aa7ba59e6189ee4e1d07798a151 100644
--- a/remoting/protocol/audio_decode_scheduler.cc
+++ b/remoting/protocol/audio_decode_scheduler.cc
@@ -25,6 +25,7 @@ AudioDecodeScheduler::AudioDecodeScheduler(
weak_factory_(this) {}
AudioDecodeScheduler::~AudioDecodeScheduler() {
+ DCHECK(thread_checker_.CalledOnValidThread());
audio_decode_task_runner_->DeleteSoon(FROM_HERE, decoder_.release());
}
« no previous file with comments | « no previous file | remoting/protocol/capture_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698