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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2249213002: [OBSOLETE] Reporting: Initial implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ProfileImplIOData Created 4 years, 2 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: 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(

Powered by Google App Engine
This is Rietveld 408576698