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/process_util_win.cc | |
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/process_util_win.cc')
-rw-r--r-- | base/process_util_win.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/process_util_win.cc b/base/process_util_win.cc index 2edf5ec..34ec599 100644 --- a/base/process_util_win.cc +++ b/base/process_util_win.cc @@ -216,14 +216,14 @@ bool DidProcessCrash(ProcessHandle handle) { const int kLeastValue = 0; const int kMaxValue = 0xFFF; const int kBucketCount = kMaxValue - kLeastValue + 1; - static LinearHistogram least_significant_histogram(L"ExitCodes.LSNibbles", + static LinearHistogram least_significant_histogram("ExitCodes.LSNibbles", kLeastValue + 1, kMaxValue, kBucketCount); least_significant_histogram.SetFlags(kUmaTargetedHistogramFlag | LinearHistogram::kHexRangePrintingFlag); least_significant_histogram.Add(exitcode & 0xFFF); // Histogram the high order 3 nibbles - static LinearHistogram most_significant_histogram(L"ExitCodes.MSNibbles", + static LinearHistogram most_significant_histogram("ExitCodes.MSNibbles", kLeastValue + 1, kMaxValue, kBucketCount); most_significant_histogram.SetFlags(kUmaTargetedHistogramFlag | LinearHistogram::kHexRangePrintingFlag); @@ -231,7 +231,7 @@ bool DidProcessCrash(ProcessHandle handle) { most_significant_histogram.Add((exitcode >> 20) & 0xFFF); // Histogram the middle order 2 nibbles - static LinearHistogram mid_significant_histogram(L"ExitCodes.MidNibbles", + static LinearHistogram mid_significant_histogram("ExitCodes.MidNibbles", 1, 0xFF, 0x100); mid_significant_histogram.SetFlags(kUmaTargetedHistogramFlag | LinearHistogram::kHexRangePrintingFlag); |