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

Unified Diff: base/histogram.h

Issue 28046: Use string for Histogram names since these are all ASCII anyway wide-characte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 10269)
+++ base/histogram.h (working copy)
@@ -218,9 +218,9 @@
};
//----------------------------------------------------------------------------
- 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 @@
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 @@
// 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 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 @@
};
#endif // BASE_HISTOGRAM_H__
-
« 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