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

Unified Diff: components/metrics/metrics_service.h

Issue 2689323010: Split a MetricsLogStore object out of MetricsLogManager. (Closed)
Patch Set: Rebase Created 3 years, 10 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/metrics_log_store_unittest.cc ('k') | components/metrics/metrics_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/metrics_service.h
diff --git a/components/metrics/metrics_service.h b/components/metrics/metrics_service.h
index 42f311fc7070d1262dfdb246c76022bc02ae4b51..fc23bdcfe0ae606deb5aee46e8fcb7b3aed5f29a 100644
--- a/components/metrics/metrics_service.h
+++ b/components/metrics/metrics_service.h
@@ -31,6 +31,7 @@
#include "components/metrics/execution_phase.h"
#include "components/metrics/metrics_log.h"
#include "components/metrics/metrics_log_manager.h"
+#include "components/metrics/metrics_log_store.h"
#include "components/metrics/metrics_provider.h"
#include "components/metrics/net/network_metrics_provider.h"
#include "components/variations/synthetic_trials.h"
@@ -200,6 +201,7 @@ class MetricsService : public base::HistogramFlattener {
protected:
// Exposed for testing.
MetricsLogManager* log_manager() { return &log_manager_; }
+ MetricsLogStore* log_store() { return &log_store_; }
private:
friend class MetricsServiceAccessor;
@@ -364,6 +366,9 @@ class MetricsService : public base::HistogramFlattener {
// Manager for the various in-flight logs.
MetricsLogManager log_manager_;
+ // Store of logs ready to be uploaded.
+ MetricsLogStore log_store_;
+
// |histogram_snapshot_manager_| prepares histogram deltas for transmission.
base::HistogramSnapshotManager histogram_snapshot_manager_;
« no previous file with comments | « components/metrics/metrics_log_store_unittest.cc ('k') | components/metrics/metrics_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698