Index: chrome/browser/metrics/subprocess_metrics_provider.h |
diff --git a/chrome/browser/metrics/subprocess_metrics_provider.h b/chrome/browser/metrics/subprocess_metrics_provider.h |
index d47f5846a3d7438a6aebfbbd1ea8c3d9db98788e..dc837be17c263438498b2bcb43a6433720dd19ef 100644 |
--- a/chrome/browser/metrics/subprocess_metrics_provider.h |
+++ b/chrome/browser/metrics/subprocess_metrics_provider.h |
@@ -44,18 +44,13 @@ class SubprocessMetricsProvider : public metrics::MetricsProvider, |
// allocator it was using. |
void DeregisterSubprocessAllocator(int id); |
- // Report all histograms of a given allocator to the snapshot-manager. |
- void RecordHistogramSnapshotsFromAllocator( |
- base::HistogramSnapshotManager* snapshot_manager, |
+ // Merge all histograms of a given allocator to the globalStatisticsRecorder. |
+ void MergeHistogramDeltasFromAllocator( |
int id, |
base::PersistentHistogramAllocator* allocator); |
// metrics::MetricsProvider: |
- void OnDidCreateMetricsLog() override; |
- void OnRecordingEnabled() override; |
- void OnRecordingDisabled() override; |
- void RecordHistogramSnapshots( |
- base::HistogramSnapshotManager* snapshot_manager) override; |
+ void MergeHistogramDeltas() override; |
// content::NotificationObserver: |
void Observe(int type, |
@@ -79,21 +74,10 @@ class SubprocessMetricsProvider : public metrics::MetricsProvider, |
IDMap<base::PersistentHistogramAllocator, IDMapOwnPointer, int>; |
AllocatorByIdMap allocators_by_id_; |
- // Allocators that are no longer attached to a subprocess, to be released |
- // once the last data contained therein has been reported. |
- std::vector<std::unique_ptr<base::PersistentHistogramAllocator>> |
- allocators_for_exited_processes_; |
- std::vector<std::unique_ptr<base::PersistentHistogramAllocator>> |
- allocators_to_release_; |
- |
// Track all observed render processes to un-observe them on exit. |
ScopedObserver<content::RenderProcessHost, SubprocessMetricsProvider> |
scoped_observer_; |
- // Flag indicating if metrics recording is enabled. Allocators will not |
- // live past the death of the subprocess if it is not. |
- bool metrics_recording_enabled_ = false; |
- |
DISALLOW_COPY_AND_ASSIGN(SubprocessMetricsProvider); |
}; |