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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2064463002: Mojo interface/service for Leak Detector on remote process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update ProtobufToMojoConverterTest Created 4 years, 5 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/metrics/leak_detector/leak_detector_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 df5033861d9d3186e8a3daa2e9f6959d65b76e68..c76d76e9cf3804a73387feb24953dad6565b5b30 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -325,6 +325,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;
@@ -2787,6 +2791,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(
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/metrics/leak_detector/leak_detector_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698