| 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 6fd7aca5d1f3dd97caedf06ff37c31f0d2452246..e57077db3b90add05f30ac3607b895c9ca971ed4 100644
|
| --- a/content/browser/renderer_host/render_process_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_process_host_impl.cc
|
| @@ -1265,7 +1265,7 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
|
| base::Bind(&BroadcastChannelProvider::Connect,
|
| base::Unretained(
|
| storage_partition_impl_->GetBroadcastChannelProvider())));
|
| - if (base::FeatureList::IsEnabled(features::kMemoryCoordinator)) {
|
| + if (MemoryCoordinator::IsEnabled()) {
|
| AddUIThreadInterface(
|
| registry.get(), base::Bind(&CreateMemoryCoordinatorHandle, GetID()));
|
| }
|
| @@ -1434,7 +1434,11 @@ bool RenderProcessHostImpl::IsWorkerRefCountDisabled() {
|
| }
|
|
|
| void RenderProcessHostImpl::PurgeAndSuspend() {
|
| - Send(new ChildProcessMsg_PurgeAndSuspend());
|
| + if (base::FeatureList::IsEnabled(features::kPurgeAndSuspend)) {
|
| + MemoryCoordinator::GetInstance()->PurgeAndSuspendChild(GetID());
|
| + } else {
|
| + Send(new ChildProcessMsg_PurgeAndSuspend());
|
| + }
|
| }
|
|
|
| mojom::RouteProvider* RenderProcessHostImpl::GetRemoteRouteProvider() {
|
|
|