Index: chrome/browser/metrics/chrome_metrics_service_client.cc |
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.cc b/chrome/browser/metrics/chrome_metrics_service_client.cc |
index 2767d20bfd64bb648ec22396a7626785b600e2d0..19fc1f8133aeb13984c2b0b19c130e2690b742ac 100644 |
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc |
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc |
@@ -24,6 +24,7 @@ |
#include "chrome/browser/google/google_brand.h" |
#include "chrome/browser/metrics/chrome_stability_metrics_provider.h" |
#include "chrome/browser/metrics/metrics_reporting_state.h" |
+#include "chrome/browser/metrics/subprocess_metrics_provider.h" |
#include "chrome/browser/metrics/time_ticks_experiment_win.h" |
#include "chrome/browser/sync/chrome_sync_client.h" |
#include "chrome/browser/ui/browser_otr_state.h" |
@@ -357,6 +358,10 @@ void ChromeMetricsServiceClient::Initialize() { |
metrics_service_.reset(new metrics::MetricsService( |
metrics_state_manager_, this, g_browser_process->local_state())); |
+ // Gets access to persistent metrics shared by sub-processes. |
+ metrics_service_->RegisterMetricsProvider( |
+ scoped_ptr<metrics::MetricsProvider>(new SubprocessMetricsProvider())); |
+ |
// Register metrics providers. |
#if defined(ENABLE_EXTENSIONS) |
metrics_service_->RegisterMetricsProvider( |