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

Unified Diff: remoting/host/mouse_shape_pump.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/mouse_shape_pump.cc
diff --git a/remoting/host/mouse_shape_pump.cc b/remoting/host/mouse_shape_pump.cc
index f86a30a853a26872a4709e2f9ad8451f8e6252a4..16a09a997c5d2ca15fed934e8e8a89f9fac7c4b3 100644
--- a/remoting/host/mouse_shape_pump.cc
+++ b/remoting/host/mouse_shape_pump.cc
@@ -32,7 +32,9 @@ MouseShapePump::MouseShapePump(
base::Bind(&MouseShapePump::Capture, base::Unretained(this)));
}
-MouseShapePump::~MouseShapePump() {}
+MouseShapePump::~MouseShapePump() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+}
void MouseShapePump::Capture() {
DCHECK(thread_checker_.CalledOnValidThread());
« no previous file with comments | « remoting/host/linux/x11_character_injector.cc ('k') | remoting/host/security_key/security_key_auth_handler_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698