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

Unified Diff: remoting/host/linux/certificate_watcher.cc

Issue 2888733002: Adding ThreadChecker validation to d'tors for host 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/host/heartbeat_sender.cc ('k') | remoting/host/linux/x11_character_injector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/linux/certificate_watcher.cc
diff --git a/remoting/host/linux/certificate_watcher.cc b/remoting/host/linux/certificate_watcher.cc
index 1f5c66113978844139f2dfc63fadcaa4930d090b..c47c4629e61f99b86ee0ca23c3d812a9f8519dc0 100644
--- a/remoting/host/linux/certificate_watcher.cc
+++ b/remoting/host/linux/certificate_watcher.cc
@@ -98,7 +98,9 @@ CertDbContentWatcher::CertDbContentWatcher(
thread_checker_.DetachFromThread();
}
-CertDbContentWatcher::~CertDbContentWatcher() {}
+CertDbContentWatcher::~CertDbContentWatcher() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+}
void CertDbContentWatcher::StartWatching() {
DCHECK(!cert_watch_path_.empty());
« no previous file with comments | « remoting/host/heartbeat_sender.cc ('k') | remoting/host/linux/x11_character_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698