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

Unified Diff: chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java

Issue 15995014: Adds MemoryPressureListener. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hooks up with MemoryPurger 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
Index: chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java
diff --git a/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java b/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java
index 25582462a18b24cc530176254ae0d58a4c32c48d..5317014022b7a70433beecf9e03b6a4e9da96e02 100644
--- a/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java
+++ b/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellActivity.java
@@ -12,6 +12,7 @@ import android.util.Log;
import android.view.KeyEvent;
import org.chromium.base.ChromiumActivity;
+import org.chromium.base.MemoryPressureHandler;
import org.chromium.chrome.browser.DevToolsServer;
import org.chromium.content.browser.ActivityContentVideoViewDelegate;
import org.chromium.content.browser.AndroidBrowserProcess;
@@ -154,6 +155,11 @@ public class ChromiumTestShellActivity extends ChromiumActivity {
}
}
+ @Override
+ public void onTrimMemory(int level) {
+ MemoryPressureHandler.onMemoryPressure(level);
joth 2013/06/05 16:51:23 with my self-contained idea, this would not be nee
bulach 2013/06/05 19:02:11 indeed, removed.
+ }
+
private static String getUrlFromIntent(Intent intent) {
return intent != null ? intent.getDataString() : null;
}

Powered by Google App Engine
This is Rietveld 408576698