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

Issue 10860023: cros: Protect app windows from out-of-memory kills (Closed)

Created:
8 years, 4 months ago by James Cook
Modified:
8 years, 4 months ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

cros: Protect app windows from out-of-memory kills Web apps that run in a window tend to be high-value and have large visible surfaces, which makes them undesirable to discard in out-of-memory situations. Deprioritize them in the same way we do pinned tabs. Also cleaned up the OomPriorityManager unit test, which wasn't completely testing that the priority sort actually reordered things. BUG=143418 TEST=Updated OomPriorityManager unit test Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152680

Patch Set 1 #

Total comments: 1

Patch Set 2 : remove unused sudden_termination flag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -47 lines) Patch
M chrome/browser/chromeos/oom_priority_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/oom_priority_manager.cc View 1 4 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/oom_priority_manager_unittest.cc View 2 chunks +26 lines, -41 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
James Cook
Greg, PTAL. This is a response to the G+ thread I added you to.
8 years, 4 months ago (2012-08-17 22:20:09 UTC) #1
Greg Spencer (Chromium)
http://codereview.chromium.org/10860023/diff/1/chrome/browser/chromeos/oom_priority_manager.cc File chrome/browser/chromeos/oom_priority_manager.cc (left): http://codereview.chromium.org/10860023/diff/1/chrome/browser/chromeos/oom_priority_manager.cc#oldcode193 chrome/browser/chromeos/oom_priority_manager.cc:193: str += ASCIIToUTF16(it->sudden_termination_allowed ? " sudden_ok " : ""); ...
8 years, 4 months ago (2012-08-21 18:51:42 UTC) #2
James Cook
Please have another look. I removed the unused flag.
8 years, 4 months ago (2012-08-21 19:57:08 UTC) #3
Greg Spencer (Chromium)
lgtm
8 years, 4 months ago (2012-08-21 20:34:23 UTC) #4
James Cook
Satoru, can I get OWNERS approval?
8 years, 4 months ago (2012-08-21 20:36:34 UTC) #5
satorux1
LGTM. You might want to create 'memory' sub directory and put memory related stuff there, ...
8 years, 4 months ago (2012-08-21 20:51:08 UTC) #6
James Cook
On 2012/08/21 20:51:08, satorux1 wrote: > LGTM. You might want to create 'memory' sub directory ...
8 years, 4 months ago (2012-08-21 21:40:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamescook@chromium.org/10860023/4001
8 years, 4 months ago (2012-08-21 21:41:05 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-08-22 00:09:47 UTC) #9
Change committed as 152680

Powered by Google App Engine
This is Rietveld 408576698