Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 449912a486f24c55f874b5bf49186259a6301e81..b15f0a95d5aef13a2a565ed28698d601289dbf47 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -136,6 +136,8 @@ |
#include "components/prefs/scoped_user_pref_update.h" |
#include "components/rappor/rappor_recorder_impl.h" |
#include "components/rappor/rappor_utils.h" |
+#include "components/reporting/content/browser/reporting_service_factory.h" |
+#include "components/reporting/core/browser/reporting_service.h" |
#include "components/security_interstitials/core/ssl_error_ui.h" |
#include "components/signin/core/common/profile_management_switches.h" |
#include "components/startup_metric_utils/browser/startup_metric_host_impl.h" |
@@ -2905,6 +2907,12 @@ void ChromeContentBrowserClient::ExposeInterfacesToRenderer( |
base::Bind(&metrics::LeakDetectorRemoteController::Create), |
ui_task_runner); |
#endif |
+ |
+ registry->AddInterface<reporting::mojom::ReportingService>(base::Bind( |
+ &reporting::ReportingService::AddBinding, |
+ base::Unretained(reporting::ReportingServiceFactory::GetForBrowserContext( |
+ render_process_host->GetBrowserContext(), |
+ /* create= */ true)))); |
} |
void ChromeContentBrowserClient::ExposeInterfacesToMediaService( |