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

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: move some parameters up a line 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
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();

Powered by Google App Engine
This is Rietveld 408576698