diff options
author | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 19:08:23 +0000 |
---|---|---|
committer | dsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 19:08:23 +0000 |
commit | 553dba6dd707ee02e609910462d2b7977f284af2 (patch) | |
tree | c38ea1fbfb3a1d387134541faa9bdfc0720234cf /base/histogram.h | |
parent | 0e7fe5cab991f8751ecaa6cd43ff7e51d9647dde (diff) | |
download | chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.zip chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.tar.gz chromium_src-553dba6dd707ee02e609910462d2b7977f284af2.tar.bz2 |
Use string for Histogram names since these are all ASCII anyway.
Wide-character literals cause problems between platforms.
Review URL: http://codereview.chromium.org/28046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/histogram.h')
-rw-r--r-- | base/histogram.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/base/histogram.h b/base/histogram.h index 624f80a..cf80c09 100644 --- a/base/histogram.h +++ b/base/histogram.h @@ -218,9 +218,9 @@ class Histogram : public StatsRate { }; //---------------------------------------------------------------------------- - Histogram(const wchar_t* name, Sample minimum, + Histogram(const char* name, Sample minimum, Sample maximum, size_t bucket_count); - Histogram(const wchar_t* name, base::TimeDelta minimum, + Histogram(const char* name, base::TimeDelta minimum, base::TimeDelta maximum, size_t bucket_count); virtual ~Histogram(); @@ -357,9 +357,9 @@ class LinearHistogram : public Histogram { Sample sample; const char* description; // Null means end of a list of pairs. }; - LinearHistogram(const wchar_t* name, Sample minimum, + LinearHistogram(const char* name, Sample minimum, Sample maximum, size_t bucket_count); - LinearHistogram(const wchar_t* name, base::TimeDelta minimum, + LinearHistogram(const char* name, base::TimeDelta minimum, base::TimeDelta maximum, size_t bucket_count); ~LinearHistogram() {} @@ -397,7 +397,7 @@ class LinearHistogram : public Histogram { // BooleanHistogram is a histogram for booleans. class BooleanHistogram : public LinearHistogram { public: - explicit BooleanHistogram(const wchar_t* name) + explicit BooleanHistogram(const char* name) : LinearHistogram(name, 0, 2, 3) { } @@ -413,7 +413,7 @@ class BooleanHistogram : public LinearHistogram { class ThreadSafeHistogram : public Histogram { public: - ThreadSafeHistogram(const wchar_t* name, Sample minimum, + ThreadSafeHistogram(const char* name, Sample minimum, Sample maximum, size_t bucket_count); // Provide the analog to Add() @@ -485,4 +485,3 @@ class StatisticsRecorder { }; #endif // BASE_HISTOGRAM_H__ - |