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

Unified Diff: remoting/base/running_samples.cc

Issue 2871143003: Adding ThreadChecker statement to d'tor for remoting/base 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/base/buffered_socket_writer.cc ('k') | remoting/base/telemetry_log_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/running_samples.cc
diff --git a/remoting/base/running_samples.cc b/remoting/base/running_samples.cc
index d76a1a688d8458e6c3d1cd2c644c4e5ca6b4dd9f..fc93e25f94856399fb5b8991e2190ba3e9895c47 100644
--- a/remoting/base/running_samples.cc
+++ b/remoting/base/running_samples.cc
@@ -15,7 +15,9 @@ RunningSamples::RunningSamples(int window_size)
DCHECK_GT(window_size, 0);
}
-RunningSamples::~RunningSamples() {}
+RunningSamples::~RunningSamples() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+}
void RunningSamples::Record(int64_t value) {
DCHECK(thread_checker_.CalledOnValidThread());
« no previous file with comments | « remoting/base/buffered_socket_writer.cc ('k') | remoting/base/telemetry_log_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698