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

Issue 322253002: Allow "freezing" NativePages to spare up memory. (Closed)

Created:
6 years, 6 months ago by newt (away)
Modified:
6 years, 6 months ago
Reviewers:
Ted C
CC:
chromium-reviews, David Trainor- moved to gerrit, avayvod+watch_chromium.org
Visibility:
Public.

Description

Allow "freezing" NativePages to spare up memory. If the user opens many tabs and navigates to a NativePage in each tab, the NativePages may use enough memory to cause a Java out-of-memory error. This adds a method Tab.freezeNativePage() which destroys the current native page and replaces it with a FrozenNativePage, which allows querying getTitle(), getUrl(), etc, but can't be displayed. BUG=359573 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276342

Patch Set 1 #

Patch Set 2 : removed assert false from updateForUrl() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -0 lines) Patch
A chrome/android/java/src/org/chromium/chrome/browser/FrozenNativePage.java View 1 1 chunk +71 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/Tab.java View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
newt (away)
PTAL, thanks!
6 years, 6 months ago (2014-06-10 21:53:14 UTC) #1
Ted C
lgtm
6 years, 6 months ago (2014-06-10 23:33:43 UTC) #2
newt (away)
The CQ bit was checked by newt@chromium.org
6 years, 6 months ago (2014-06-11 00:12:27 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/newt@chromium.org/322253002/20001
6 years, 6 months ago (2014-06-11 00:14:43 UTC) #4
commit-bot: I haz the power
6 years, 6 months ago (2014-06-11 11:08:53 UTC) #5
Message was sent while issue was closed.
Change committed as 276342

Powered by Google App Engine
This is Rietveld 408576698