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

Unified Diff: components/metrics/metrics_service.cc

Issue 1738063002: Refactor histogram_persistence to be a class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed final review comments by Alexei Created 4 years, 9 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 | « components/metrics/file_metrics_provider_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_service.cc
diff --git a/components/metrics/metrics_service.cc b/components/metrics/metrics_service.cc
index d17911a0bf9c259e20748f11b2b3720e8fb32a5b..c3ef7ec71d8dd9b69774d8c46a4a1ebb4196c61a 100644
--- a/components/metrics/metrics_service.cc
+++ b/components/metrics/metrics_service.cc
@@ -133,8 +133,8 @@
#include "base/location.h"
#include "base/metrics/histogram_base.h"
#include "base/metrics/histogram_macros.h"
-#include "base/metrics/histogram_persistence.h"
#include "base/metrics/histogram_samples.h"
+#include "base/metrics/persistent_histogram_allocator.h"
#include "base/metrics/sparse_histogram.h"
#include "base/metrics/statistics_recorder.h"
#include "base/rand_util.h"
@@ -746,8 +746,8 @@ void MetricsService::CloseCurrentLog() {
// If a persistent allocator is in use, update its internal histograms (such
// as how much memory is being used) before reporting.
- base::PersistentMemoryAllocator* allocator =
- base::GetPersistentHistogramMemoryAllocator();
+ base::PersistentHistogramAllocator* allocator =
+ base::PersistentHistogramAllocator::GetGlobalAllocator();
if (allocator)
allocator->UpdateTrackingHistograms();
« no previous file with comments | « components/metrics/file_metrics_provider_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698