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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1566603003: Dummy patch to try out Mojo connection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize from RegisterRenderProcessMojoServices Created 4 years, 11 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/chrome_content_browser_client.h ('k') | chrome/chrome_renderer.gypi » ('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 ebbc333b3e0864be4efb0f1e31468bf154c932da..cbaff0817588ca05977d6d06c837342ea3568737 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -291,6 +291,8 @@
#include "chrome/browser/chrome_browser_main_extra_parts_exo.h"
#endif
+#include "components/metrics/leak_detector/leak_detector_monitor_impl.h"
+
using base::FileDescriptor;
using blink::WebWindowFeatures;
using content::AccessTokenStore;
@@ -2624,6 +2626,12 @@ bool ChromeContentBrowserClient::PreSpawnRenderer(
}
#endif
+void ChromeContentBrowserClient::RegisterRenderProcessMojoServices(
+ content::ServiceRegistry* registry) {
+ LOG(ERROR) << "Adding LeakDetectorMonitorImpl service";
+ registry->AddService(base::Bind(&metrics::LeakDetectorMonitorImpl::Create));
+}
+
void ChromeContentBrowserClient::RegisterFrameMojoShellServices(
content::ServiceRegistry* registry,
content::RenderFrameHost* render_frame_host) {
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/chrome_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698