Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index b1a238db5ab529c4be1d6324ca1e393f357ce979..acad3e058844ea7f8c9e4bfb30c145ebb9cc2c7a 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -182,6 +182,7 @@ |
#include "mojo/public/cpp/bindings/associated_interface_ptr.h" |
#include "net/url_request/url_request_context_getter.h" |
#include "ppapi/features/features.h" |
+#include "services/resource_coordinator/memory/coordinator/coordinator_impl.h" |
#include "services/service_manager/public/cpp/connection.h" |
#include "services/service_manager/public/cpp/connector.h" |
#include "services/service_manager/public/cpp/interface_provider.h" |
@@ -1340,6 +1341,13 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() { |
base::Unretained(manager))); |
} |
+ AddUIThreadInterface( |
+ registry.get(), |
+ base::Bind( |
+ &memory_instrumentation::CoordinatorImpl::BindCoordinatorRequest, |
+ base::Unretained( |
+ BrowserMainLoop::GetMemoryInstrumentationCoordinator()))); |
+ |
GetContentClient()->browser()->ExposeInterfacesToRenderer(registry.get(), |
this); |