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

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

Issue 2412413002: WIP: Add MemoryCoordinator::GetCurrentMemoryState (Closed)
Patch Set: Change the base Created 4 years, 2 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
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 1ea81839899654c28dc5752c7a7b276ad49031c2..da84c9d8fba53fee3d95b1ddbf64ddb15a683b04 100644
--- a/content/browser/memory/memory_coordinator_impl.cc
+++ b/content/browser/memory/memory_coordinator_impl.cc
@@ -102,6 +102,10 @@ void MemoryCoordinatorImpl::OnChildAdded(int render_process_id) {
SetMemoryState(render_process_id, ToMojomMemoryState(current_state_));
}
+base::MemoryState MemoryCoordinatorImpl::GetCurrentState() const {
+ return current_state_;
+}
+
base::MemoryState MemoryCoordinatorImpl::CalculateNextState() {
using MemoryState = base::MemoryState;

Powered by Google App Engine
This is Rietveld 408576698