summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs
diff options
context:
space:
mode:
authorgspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 22:57:55 +0000
committergspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-23 22:57:55 +0000
commitcfa25bde323a4c21b8814cbc1df61ccbfa9d9314 (patch)
tree3e6797427d89e2fbc70401da278c7e3e7c3a3a0a /chrome/browser/tabs
parent47a68cff12f3b60e16a585b90643f493a7732337 (diff)
downloadchromium_src-cfa25bde323a4c21b8814cbc1df61ccbfa9d9314.zip
chromium_src-cfa25bde323a4c21b8814cbc1df61ccbfa9d9314.tar.gz
chromium_src-cfa25bde323a4c21b8814cbc1df61ccbfa9d9314.tar.bz2
This change implements OOM priority management for ChromeOS
This adds periodic OOM score adjustment, based on the last access time of the tab, whether or not it is pinned, and (of course) how much memory it is using. BUG=http://crosbug.com/8990 TEST=Ran some ui_tests, ran on device. Review URL: http://codereview.chromium.org/4498001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67175 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r--chrome/browser/tabs/tab_strip_model.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index 1341578..26665e1 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -476,6 +476,7 @@ void TabStripModel::SetTabPinned(int index, bool pinned) {
}
bool TabStripModel::IsTabPinned(int index) const {
+ DCHECK(ContainsIndex(index));
return contents_data_[index]->pinned;
}