| 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 20a1d6c45d1f46df209c24893e6eb21bb34f661e..8434a285017e9d89c4136b1f13d99b45ca54c4c4 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -44,6 +44,8 @@
|
| #include "base/tracked_objects.h"
|
| #include "build/build_config.h"
|
| #include "cc/base/switches.h"
|
| +#include "components/memory_coordinator/browser/memory_coordinator.h"
|
| +#include "components/memory_coordinator/common/memory_coordinator_features.h"
|
| #include "components/scheduler/common/scheduler_switches.h"
|
| #include "components/tracing/common/tracing_switches.h"
|
| #include "components/webmessaging/broadcast_channel_provider.h"
|
| @@ -450,6 +452,13 @@ std::string UintVectorToString(const std::vector<unsigned>& vector) {
|
| return str;
|
| }
|
|
|
| +void CreateMemoryCoordinatorHandle(
|
| + int render_process_id,
|
| + memory_coordinator::mojom::MemoryCoordinatorHandleRequest request) {
|
| + BrowserMainLoop::GetInstance()->memory_coordinator()->CreateHandle(
|
| + render_process_id, std::move(request));
|
| +}
|
| +
|
| } // namespace
|
|
|
| RendererMainThreadFactoryFunction g_renderer_main_thread_factory = NULL;
|
| @@ -1099,6 +1108,11 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
|
| GetInterfaceRegistry()->AddInterface(
|
| base::Bind(&DeviceOrientationAbsoluteHost::Create), io_task_runner);
|
|
|
| + if (memory_coordinator::IsEnabled()) {
|
| + GetInterfaceRegistry()->AddInterface(
|
| + base::Bind(&CreateMemoryCoordinatorHandle, GetID()));
|
| + }
|
| +
|
| #if defined(OS_ANDROID)
|
| ServiceRegistrarAndroid::RegisterProcessHostServices(
|
| mojo_child_connection_->service_registry_android());
|
|
|