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

Unified Diff: base/histogram.h

Issue 50014: Fix a bunch of tiny near-bugs and bugs that static analysis identified... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/histogram.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/histogram.h
===================================================================
--- base/histogram.h (revision 12136)
+++ base/histogram.h (working copy)
@@ -475,10 +475,10 @@
// Provide locked versions to get precise counts.
virtual void Accumulate(Sample value, Count count, size_t index);
- virtual void SnapshotSample(SampleSet* sample);
+ virtual void SnapshotSample(SampleSet* sample) const;
private:
- Lock lock_;
+ mutable Lock lock_;
DISALLOW_COPY_AND_ASSIGN(ThreadSafeHistogram);
};
« no previous file with comments | « no previous file | base/histogram.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698