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

Unified Diff: base/metrics/histogram_snapshot_manager.h

Issue 2836993002: Add ThreadChecker to HistogramSnapshotManager. (Closed)
Patch Set: remove dead code (InspectLoggedSamplesInconsistency) Created 3 years, 8 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 | base/metrics/histogram_snapshot_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_snapshot_manager.h
diff --git a/base/metrics/histogram_snapshot_manager.h b/base/metrics/histogram_snapshot_manager.h
index de4a2e195a1a725a789f0cd346ae84f023681881..fe26faad1138c6dbaa57f40b9d23c56eeb3ecb94 100644
--- a/base/metrics/histogram_snapshot_manager.h
+++ b/base/metrics/histogram_snapshot_manager.h
@@ -14,6 +14,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/metrics/histogram_base.h"
+#include "base/threading/thread_checker.h"
namespace base {
@@ -75,11 +76,6 @@ class BASE_EXPORT HistogramSnapshotManager {
void PrepareSamples(const HistogramBase* histogram,
std::unique_ptr<HistogramSamples> samples);
- // Try to detect and fix count inconsistency of logged samples.
- void InspectLoggedSamplesInconsistency(
- const HistogramSamples& new_snapshot,
- HistogramSamples* logged_samples);
-
// For histograms, track what has been previously seen, indexed
// by the hash of the histogram name.
std::map<uint64_t, SampleInfo> known_histograms_;
@@ -88,6 +84,8 @@ class BASE_EXPORT HistogramSnapshotManager {
// deltas.
HistogramFlattener* histogram_flattener_; // Weak.
+ ThreadChecker thread_checker_;
+
DISALLOW_COPY_AND_ASSIGN(HistogramSnapshotManager);
};
« no previous file with comments | « no previous file | base/metrics/histogram_snapshot_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698