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

Issue 7930022: chromeos: Set a least score to the currently focused tab so that it is not selected (Closed)

Created:
9 years, 3 months ago by amruthraj
Modified:
9 years, 3 months ago
CC:
chromium-reviews, roseN
Visibility:
Public.

Description

chromeos: Set a least score to the currently focused tab so that it is not selected by the OOM killer to get killed. BUG=chromium-os:18421 TEST=Verify that "He's dead JIM tab doesn't come on the currently focused tab in OOM cases. It can still happen only if there is one tab present and it eats up all the available system memory." Patch by amruthraj@motorola.com, rosen.dash@motorola.com Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102134

Patch Set 1 #

Total comments: 16

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -2 lines) Patch
M chrome/browser/oom_priority_manager.h View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/oom_priority_manager.cc View 1 2 6 chunks +49 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
amruthraj
Hi, I tried to fix this bug by doing the following: - Once CompareRendererStats builds ...
9 years, 3 months ago (2011-09-19 13:11:27 UTC) #1
James Cook
Amruth, I'm not sure this does what you want.... Questions below. http://codereview.chromium.org/7930022/diff/1/chrome/browser/oom_priority_manager.cc File chrome/browser/oom_priority_manager.cc (right): ...
9 years, 3 months ago (2011-09-19 17:08:55 UTC) #2
amruthraj
http://codereview.chromium.org/7930022/diff/1/chrome/browser/oom_priority_manager.cc File chrome/browser/oom_priority_manager.cc (right): http://codereview.chromium.org/7930022/diff/1/chrome/browser/oom_priority_manager.cc#newcode134 chrome/browser/oom_priority_manager.cc:134: // Use a score 1 less than the last ...
9 years, 3 months ago (2011-09-19 17:17:05 UTC) #3
James Cook
> The problem with this approach is that when a user does a Ctrl-Tab-and-Hold, > ...
9 years, 3 months ago (2011-09-19 17:36:34 UTC) #4
amruthraj
On 2011/09/19 17:36:34, James Cook (Chromium) wrote: > > The problem with this approach is ...
9 years, 3 months ago (2011-09-19 17:43:24 UTC) #5
Greg Spencer (Chromium)
Thanks for taking a look at this! http://codereview.chromium.org/7930022/diff/1/chrome/browser/oom_priority_manager.cc File chrome/browser/oom_priority_manager.cc (right): http://codereview.chromium.org/7930022/diff/1/chrome/browser/oom_priority_manager.cc#newcode134 chrome/browser/oom_priority_manager.cc:134: // Use ...
9 years, 3 months ago (2011-09-19 19:45:51 UTC) #6
amruthraj
9 years, 3 months ago (2011-09-20 09:59:31 UTC) #7
amruthraj
http://codereview.chromium.org/7930022/diff/1/chrome/browser/oom_priority_manager.cc File chrome/browser/oom_priority_manager.cc (right): http://codereview.chromium.org/7930022/diff/1/chrome/browser/oom_priority_manager.cc#newcode134 chrome/browser/oom_priority_manager.cc:134: // Use a score 1 less than the last ...
9 years, 3 months ago (2011-09-20 10:07:53 UTC) #8
James Cook
Just a couple of formatting things, then should be good to submit. http://codereview.chromium.org/7930022/diff/7001/chrome/browser/oom_priority_manager.cc File chrome/browser/oom_priority_manager.cc ...
9 years, 3 months ago (2011-09-20 17:08:03 UTC) #9
Greg Spencer (Chromium)
LGTM (after James' comments are addressed)
9 years, 3 months ago (2011-09-20 19:19:45 UTC) #10
amruthraj
http://codereview.chromium.org/7930022/diff/7001/chrome/browser/oom_priority_manager.cc File chrome/browser/oom_priority_manager.cc (right): http://codereview.chromium.org/7930022/diff/7001/chrome/browser/oom_priority_manager.cc#newcode173 chrome/browser/oom_priority_manager.cc:173: break; On 2011/09/20 17:08:03, James Cook (Chromium) wrote: > ...
9 years, 3 months ago (2011-09-21 04:25:01 UTC) #11
James Cook
lgtm
9 years, 3 months ago (2011-09-21 15:35:30 UTC) #12
commit-bot: I haz the power
9 years, 3 months ago (2011-09-21 18:13:54 UTC) #13
Change committed as 102134

Powered by Google App Engine
This is Rietveld 408576698