Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Unified Diff: content/browser/devtools/protocol/memory_handler.cc

Issue 2882513004: Remove renderer notifications of memory pressure. (Closed)
Patch Set: Merge Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/memory/memory_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/memory/memory_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698