Commit 8bc4d15b authored by Takashi Sakamoto's avatar Takashi Sakamoto Committed by Commit Bot

Remove MemoryCoordinator from RenderProcessHostImpl

Bug: 888904
Change-Id: I5be3ea82fed659cb0fc3ddbe13e308eb9e8c1f38
Reviewed-on: https://chromium-review.googlesource.com/c/1286009
Commit-Queue: Takashi Sakamoto <tasak@google.com>
Reviewed-by: default avatarKen Buchanan <kenrb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600669}
parent aac50024
......@@ -29,6 +29,7 @@
#include "base/location.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/memory_pressure_monitor.h"
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted.h"
#include "base/memory/shared_memory.h"
......@@ -107,7 +108,6 @@
#include "content/browser/media/capture/audio_mirroring_manager.h"
#include "content/browser/media/media_internals.h"
#include "content/browser/media/midi_host.h"
#include "content/browser/memory/memory_coordinator_impl.h"
#include "content/browser/mime_registry_impl.h"
#include "content/browser/payments/payment_manager.h"
#include "content/browser/permissions/permission_service_context.h"
......@@ -796,13 +796,6 @@ class DefaultSubframeProcessHostHolder : public base::SupportsUserData::Data,
RenderProcessHost* host_ = nullptr;
};
void CreateMemoryCoordinatorHandleForRenderProcess(
int render_process_id,
mojom::MemoryCoordinatorHandleRequest request) {
MemoryCoordinatorImpl::GetInstance()->CreateHandle(render_process_id,
std::move(request));
}
void CreateProcessResourceCoordinator(
RenderProcessHostImpl* render_process_host,
resource_coordinator::mojom::ProcessCoordinationUnitRequest request) {
......@@ -2124,11 +2117,6 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
base::Bind(&BroadcastChannelProvider::Connect,
base::Unretained(
storage_partition_impl_->GetBroadcastChannelProvider())));
if (base::FeatureList::IsEnabled(features::kMemoryCoordinator)) {
AddUIThreadInterface(
registry.get(),
base::Bind(&CreateMemoryCoordinatorHandleForRenderProcess, GetID()));
}
AddUIThreadInterface(
registry.get(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment