Re-enable page cache.
Fix b: 2533219
Change-Id: Ida1122cd9a137a9d4caba8187bf48f9688889747
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java
index 39c2f1e..81701dc 100644
--- a/src/com/android/browser/BrowserSettings.java
+++ b/src/com/android/browser/BrowserSettings.java
@@ -257,14 +257,10 @@
// the cost of one cached page is ~3M (measured using nytimes.com). For
// low end devices, we only cache one page. For high end devices, we try
// to cache more pages, currently choose 5.
- //
- // Note: the page cache is disabled on high-end devices due to an
- // incompatibility with V8. TODO: re-enable the page cache once the
- // problem with V8 is solved.
ActivityManager am = (ActivityManager) ctx
.getSystemService(Context.ACTIVITY_SERVICE);
if (am.getMemoryClass() > 16) {
- pageCacheCapacity = 0;
+ pageCacheCapacity = 5;
} else {
pageCacheCapacity = 1;
}