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

Unified Diff: content/browser/memory/memory_coordinator_impl.cc

Issue 2550623002: Add MemoryCoordinator::GetGlobalMemoryState() (Closed)
Patch Set: Created 4 years 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/memory/memory_coordinator_impl.h ('k') | content/browser/memory/memory_monitor_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/memory/memory_coordinator_impl.cc
diff --git a/content/browser/memory/memory_coordinator_impl.cc b/content/browser/memory/memory_coordinator_impl.cc
index 66f6a9b4df251d7e9011aa34814f40d540ffbee7..27b222e636c3499cdcb4311b9880130600408c10 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -188,6 +188,10 @@ void MemoryCoordinatorImpl::OnChildAdded(int render_process_id) {
SetChildMemoryState(render_process_id, ToMojomMemoryState(current_state_));
}
+base::MemoryState MemoryCoordinatorImpl::GetGlobalMemoryState() const {
+ return current_state_;
+}
+
base::MemoryState MemoryCoordinatorImpl::GetCurrentMemoryState() const {
// SUSPENDED state may not make sense to the browser process. Use THROTTLED
// instead when the global state is SUSPENDED.
« no previous file with comments | « content/browser/memory/memory_coordinator_impl.h ('k') | content/browser/memory/memory_monitor_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698