| Index: content/browser/devtools/protocol/memory_handler.cc
|
| diff --git a/content/browser/devtools/protocol/memory_handler.cc b/content/browser/devtools/protocol/memory_handler.cc
|
| index bdc14bc821fb1b22f0b65b10c3c439db35da0769..80464fe4d9b51d0d44273fdf7b6c560a762f904b 100644
|
| --- a/content/browser/devtools/protocol/memory_handler.cc
|
| +++ b/content/browser/devtools/protocol/memory_handler.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include "base/memory/memory_pressure_listener.h"
|
| #include "base/strings/stringprintf.h"
|
| -#include "content/browser/memory/memory_pressure_controller_impl.h"
|
| #include "content/public/common/content_features.h"
|
|
|
| namespace content {
|
| @@ -29,8 +28,8 @@ Response MemoryHandler::SetPressureNotificationsSuppressed(
|
| "Cannot enable/disable notifications when memory coordinator is "
|
| "enabled");
|
| }
|
| - content::MemoryPressureControllerImpl::GetInstance()
|
| - ->SetPressureNotificationsSuppressedInAllProcesses(suppressed);
|
| +
|
| + base::MemoryPressureListener::SetNotificationsSuppressed(suppressed);
|
| return Response::OK();
|
| }
|
|
|
| @@ -46,8 +45,8 @@ Response MemoryHandler::SimulatePressureNotification(
|
| "Invalid memory pressure level '%s'", level.c_str()));
|
| }
|
|
|
| - MemoryPressureControllerImpl::GetInstance()
|
| - ->SimulatePressureNotificationInAllProcesses(parsed_level);
|
| + // Simulate memory pressure notification in the browser process.
|
| + base::MemoryPressureListener::SimulatePressureNotification(parsed_level);
|
| return Response::OK();
|
| }
|
|
|
|
|