diff options
Diffstat (limited to 'chrome/browser/diagnostics/sqlite_diagnostics.cc')
-rw-r--r-- | chrome/browser/diagnostics/sqlite_diagnostics.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/diagnostics/sqlite_diagnostics.cc b/chrome/browser/diagnostics/sqlite_diagnostics.cc index f3ca31d..b266002 100644 --- a/chrome/browser/diagnostics/sqlite_diagnostics.cc +++ b/chrome/browser/diagnostics/sqlite_diagnostics.cc @@ -43,9 +43,11 @@ class BasicSqliteErrrorHandler : public sql::ErrorDelegate { static void RecordErrorInHistogram(int error) { // The histogram values from sqlite result codes go currently from 1 to // 26 currently but 50 gives them room to grow. - static LinearHistogram histogram(kHistogramNames[unique], 1, 50, 51); - histogram.SetFlags(kUmaTargetedHistogramFlag); - histogram.Add(error); + static scoped_refptr<Histogram> histogram = + LinearHistogram::LinearHistogramFactoryGet(kHistogramNames[unique], 1, + 50, 51); + histogram->SetFlags(kUmaTargetedHistogramFlag); + histogram->Add(error); } }; |