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

Unified Diff: content/child/memory/child_memory_coordinator_impl.cc

Issue 2685933003: memory coordinator: Call PurgeMemory() after Notify(SUSPENDED) (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/memory/child_memory_coordinator_impl.cc
diff --git a/content/child/memory/child_memory_coordinator_impl.cc b/content/child/memory/child_memory_coordinator_impl.cc
index 7724519a16a8224a3d8097490515ee52d25c1a29..847794220f6057729e418ac4e2972bfdb664234f 100644
--- a/content/child/memory/child_memory_coordinator_impl.cc
+++ b/content/child/memory/child_memory_coordinator_impl.cc
@@ -59,11 +59,11 @@ ChildMemoryCoordinatorImpl::~ChildMemoryCoordinatorImpl() {
}
void ChildMemoryCoordinatorImpl::PurgeMemory() {
- base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory();
- // TODO(bashi): Remove following notification when all clients implement
+ // TODO(bashi): Remove Notify() call when all clients implement
// OnPurgeMemory();
base::MemoryCoordinatorClientRegistry::GetInstance()->Notify(
base::MemoryState::SUSPENDED);
+ base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory();
}
void ChildMemoryCoordinatorImpl::OnStateChange(mojom::MemoryState state) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698