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

Unified Diff: content/app/android/child_process_service.cc

Issue 17351006: MemoryPressure: sends the signal to the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No IPC Created 7 years, 6 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/app/android/child_process_service.cc
diff --git a/content/app/android/child_process_service.cc b/content/app/android/child_process_service.cc
index b06b0b4d6d80f2903032f10b9979a860abf67985..e2250048de2d9054eda0caa007e8701a82069425 100644
--- a/content/app/android/child_process_service.cc
+++ b/content/app/android/child_process_service.cc
@@ -8,6 +8,7 @@
#include <cpu-features.h>
#include "base/android/jni_array.h"
+#include "base/android/memory_pressure_listener_android.h"
#include "base/logging.h"
#include "base/posix/global_descriptors.h"
#include "content/child/child_process.h"
@@ -102,6 +103,7 @@ void InternalInitChildProcess(const std::vector<int>& file_ids,
content::SurfaceTexturePeer::InitInstance(
new SurfaceTexturePeerChildImpl(service));
+ base::android::MemoryPressureListenerAndroid::RegisterSystemCallback(env);
}
void QuitMainThreadMessageLoop() {
« 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