| Index: chrome/browser/spellchecker/spellcheck_host_metrics_unittest.cc
|
| diff --git a/chrome/browser/spellchecker/spellcheck_host_metrics_unittest.cc b/chrome/browser/spellchecker/spellcheck_host_metrics_unittest.cc
|
| index a2b9bb3c2c2a77d2c78ea76f2d490011a5b20365..113e65d89dbf859486a5e6ebb8aec3f7032175c8 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_host_metrics_unittest.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_host_metrics_unittest.cc
|
| @@ -13,7 +13,7 @@
|
| #include "base/utf_string_conversions.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| -using base::Histogram;
|
| +using base::HistogramBase;
|
| using base::HistogramSamples;
|
| using base::StatisticsRecorder;
|
|
|
| @@ -37,7 +37,7 @@ class SpellcheckHostMetricsTest : public testing::Test {
|
|
|
| TEST_F(SpellcheckHostMetricsTest, RecordEnabledStats) {
|
| scoped_ptr<HistogramSamples> baseline;
|
| - Histogram* histogram =
|
| + HistogramBase* histogram =
|
| StatisticsRecorder::FindHistogram("SpellCheck.Enabled");
|
| if (histogram)
|
| baseline = histogram->SnapshotSamples();
|
| @@ -69,7 +69,7 @@ TEST_F(SpellcheckHostMetricsTest, RecordEnabledStats) {
|
| TEST_F(SpellcheckHostMetricsTest, CustomWordStats) {
|
| metrics()->RecordCustomWordCountStats(123);
|
|
|
| - Histogram* histogram =
|
| + HistogramBase* histogram =
|
| StatisticsRecorder::FindHistogram("SpellCheck.CustomWords");
|
| ASSERT_TRUE(histogram != NULL);
|
| scoped_ptr<HistogramSamples> baseline = histogram->SnapshotSamples();
|
| @@ -102,7 +102,7 @@ TEST_F(SpellcheckHostMetricsTest, RecordWordCountsDiscardsDuplicates) {
|
| // Get baselines for all affected histograms.
|
| scoped_ptr<HistogramSamples> baselines[arraysize(histogramName)];
|
| for (size_t i = 0; i < arraysize(histogramName); ++i) {
|
| - Histogram* histogram =
|
| + HistogramBase* histogram =
|
| StatisticsRecorder::FindHistogram(histogramName[i]);
|
| if (histogram)
|
| baselines[i] = histogram->SnapshotSamples();
|
| @@ -114,7 +114,7 @@ TEST_F(SpellcheckHostMetricsTest, RecordWordCountsDiscardsDuplicates) {
|
| // Get samples for all affected histograms.
|
| scoped_ptr<HistogramSamples> samples[arraysize(histogramName)];
|
| for (size_t i = 0; i < arraysize(histogramName); ++i) {
|
| - Histogram* histogram =
|
| + HistogramBase* histogram =
|
| StatisticsRecorder::FindHistogram(histogramName[i]);
|
| ASSERT_TRUE(histogram != NULL);
|
| samples[i] = histogram->SnapshotSamples();
|
|
|