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 64a3c5ee3ad5c5e5a3a07198608bd8d781edc576..47445a8b2af958b4e7b1e64952b282cca243b9b5 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -324,6 +324,10 @@ |
#include "media/mojo/services/mojo_media_application_factory.h" // nogncheck |
#endif |
+#if defined(OS_CHROMEOS) |
+#include "chrome/browser/metrics/leak_detector/leak_detector_remote_controller.h" |
+#endif |
+ |
using base::FileDescriptor; |
using blink::WebWindowFeatures; |
using content::AccessTokenStore; |
@@ -2786,6 +2790,11 @@ void ChromeContentBrowserClient::ExposeInterfacesToRenderer( |
content::RenderProcessHost* render_process_host) { |
registry->AddInterface( |
base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create)); |
+ |
+#if defined(OS_CHROMEOS) |
+ registry->AddInterface<metrics::mojom::LeakDetector>( |
+ base::Bind(&metrics::LeakDetectorRemoteController::Create)); |
+#endif |
} |
void ChromeContentBrowserClient::RegisterFrameMojoShellInterfaces( |