summaryrefslogtreecommitdiffstats
path: root/base/histogram.cc
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-15 20:45:59 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-15 20:45:59 +0000
commit2b65dc322b7f1c3ac760ec1ee6248f31f67a2a88 (patch)
treefed033589a0f67338ed57ae2ccd5dabc06242a80 /base/histogram.cc
parentce43daf0ae0b7816c843be7a1df8878c34f4005b (diff)
downloadchromium_src-2b65dc322b7f1c3ac760ec1ee6248f31f67a2a88.zip
chromium_src-2b65dc322b7f1c3ac760ec1ee6248f31f67a2a88.tar.gz
chromium_src-2b65dc322b7f1c3ac760ec1ee6248f31f67a2a88.tar.bz2
Enhance error report info (and correct typos)
r=sky Review URL: http://codereview.chromium.org/18280 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8116 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/histogram.cc')
-rw-r--r--base/histogram.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/histogram.cc b/base/histogram.cc
index 825d286..173cf40 100644
--- a/base/histogram.cc
+++ b/base/histogram.cc
@@ -554,9 +554,9 @@ bool StatisticsRecorder::Register(const Histogram& histogram) {
const std::string name = histogram.histogram_name();
AutoLock auto_lock(*lock_);
- DCHECK(histograms_->end() == histograms_->find(name)) << name << "is already"
- "registered as a histogram. Only one histogram may be registered with a"
- " given name";
+ DCHECK(histograms_->end() == histograms_->find(name)) << name << " is already"
+ "registered as a histogram. Check for duplicate use of the name, or a "
+ "race where a static initializer could be run by several threads.";
(*histograms_)[name] = &histogram;
return true;
}