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

Unified Diff: base/memory/memory_coordinator_client_registry.cc

Issue 2655083003: Add OnPurgeMemory() to MemoryCoordinatorClient (Closed)
Patch Set: comment Created 3 years, 11 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: base/memory/memory_coordinator_client_registry.cc
diff --git a/base/memory/memory_coordinator_client_registry.cc b/base/memory/memory_coordinator_client_registry.cc
index 57eedc683c38cc31107fb530b86cc5a62826b037..67064581ab001efceb06e3ef51f77fe7fc250830 100644
--- a/base/memory/memory_coordinator_client_registry.cc
+++ b/base/memory/memory_coordinator_client_registry.cc
@@ -34,4 +34,8 @@ void MemoryCoordinatorClientRegistry::Notify(MemoryState state) {
&base::MemoryCoordinatorClient::OnMemoryStateChange, state);
}
+void MemoryCoordinatorClientRegistry::PurgeMemory() {
+ clients_->Notify(FROM_HERE, &base::MemoryCoordinatorClient::OnPurgeMemory);
+}
+
} // namespace base
« no previous file with comments | « base/memory/memory_coordinator_client_registry.h ('k') | base/memory/memory_coordinator_client_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698