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

Unified Diff: remoting/host/security_key/security_key_ipc_client.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
Index: remoting/host/security_key/security_key_ipc_client.cc
diff --git a/remoting/host/security_key/security_key_ipc_client.cc b/remoting/host/security_key/security_key_ipc_client.cc
index 3b6b4058374725d8bf890fc08ed00db54fadd4eb..c2df6e266017b01af364436c70ebb906216bd6ce 100644
--- a/remoting/host/security_key/security_key_ipc_client.cc
+++ b/remoting/host/security_key/security_key_ipc_client.cc
@@ -26,7 +26,9 @@ SecurityKeyIpcClient::SecurityKeyIpcClient()
: named_channel_handle_(remoting::GetSecurityKeyIpcChannel()),
weak_factory_(this) {}
-SecurityKeyIpcClient::~SecurityKeyIpcClient() {}
+SecurityKeyIpcClient::~SecurityKeyIpcClient() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+}
bool SecurityKeyIpcClient::CheckForSecurityKeyIpcServerChannel() {
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698