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

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

Issue 1362233003: Add architecture for simulating memory pressure notifications in all processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Primiano's comments Created 5 years, 3 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_message_filter.cc
diff --git a/content/browser/memory/memory_message_filter.cc b/content/browser/memory/memory_message_filter.cc
index b386717789ea162798019087a797fc22258c309c..8f6fe489bfec1c184a7be9e44254d479df7eb04b 100644
--- a/content/browser/memory/memory_message_filter.cc
+++ b/content/browser/memory/memory_message_filter.cc
@@ -31,4 +31,9 @@ void MemoryMessageFilter::SendSetPressureNotificationsSuppressed(
Send(new MemoryMsg_SetPressureNotificationsSuppressed(suppressed));
}
+void MemoryMessageFilter::SendSimulatePressureNotification(
+ base::MemoryPressureListener::MemoryPressureLevel level) {
+ Send(new MemoryMsg_SimulatePressureNotification(level));
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698