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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2376403003: Convert RapporRecorder to use mojo. (Closed)
Patch Set: Convert RapporRecorder to use mojo. 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 c6aa796b01d543d9c87a9b6378c7c6743b5b299f..83a0ba94c9e329de8ba64070d841245241eb3663 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -134,6 +134,7 @@
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "components/rappor/rappor_utils.h"
+#include "components/rappor/recorder/rappor_recorder_impl.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"
@@ -2939,6 +2940,10 @@ void ChromeContentBrowserClient::ExposeInterfacesToRenderer(
registry->AddInterface(
base::Bind(&BudgetServiceImpl::Create, render_process_host->GetID()),
ui_task_runner);
+ registry->AddInterface(
+ base::Bind(&rappor::RapporRecorderImpl::Create,
+ g_browser_process->rappor_service()),
+ ui_task_runner);
#if defined(OS_CHROMEOS)
registry->AddInterface<metrics::mojom::LeakDetector>(

Powered by Google App Engine
This is Rietveld 408576698