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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2169763002: Reland of "Mojo interface/service for Leak Detector on remote process" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add dependency on Mojo C++ services code to renderer 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 3db8ffcf93b9f72ec2566445f896cd012b3901ac..e8299067faddd218a8bd3577bc6ee7e4d71e053a 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