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

Unified Diff: base/histogram.cc

Issue 11544: Remove use of wide characters in stats table identifiers. (Closed)
Patch Set: Created 12 years, 1 month 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/stats_counters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/histogram.cc
diff --git a/base/histogram.cc b/base/histogram.cc
index 384716d713c4fc33f3fd19c5f6c76641744fc0a1..2b05077282416598aba5c6d98650845af7808441 100644
--- a/base/histogram.cc
+++ b/base/histogram.cc
@@ -25,7 +25,7 @@ const int Histogram::kHexRangePrintingFlag = 0x8000;
Histogram::Histogram(const wchar_t* name, Sample minimum,
Sample maximum, size_t bucket_count)
- : StatsRate(name),
+ : StatsRate(WideToASCII(name).c_str()),
histogram_name_(WideToASCII(name)),
declared_min_(minimum),
declared_max_(maximum),
@@ -39,7 +39,7 @@ Histogram::Histogram(const wchar_t* name, Sample minimum,
Histogram::Histogram(const wchar_t* name, TimeDelta minimum,
TimeDelta maximum, size_t bucket_count)
- : StatsRate(name),
+ : StatsRate(WideToASCII(name).c_str()),
histogram_name_(WideToASCII(name)),
declared_min_(static_cast<int> (minimum.InMilliseconds())),
declared_max_(static_cast<int> (maximum.InMilliseconds())),
« no previous file with comments | « no previous file | base/stats_counters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698