diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 21:27:28 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 21:27:28 +0000 |
commit | 4d6410894307a68dac830021f75355ae7c591822 (patch) | |
tree | 4071c12c3b9067afc3da89a647c523527f0291cb /base/process_linux.cc | |
parent | d46c598c95a1489a359ad6ef7d31b7fc48f47c15 (diff) | |
download | chromium_src-4d6410894307a68dac830021f75355ae7c591822.zip chromium_src-4d6410894307a68dac830021f75355ae7c591822.tar.gz chromium_src-4d6410894307a68dac830021f75355ae7c591822.tar.bz2 |
Lower process priorities of backgrounded tabs on restore
BUG=chromium-os:10876,chromium-os:10924
TEST=login (w/auto restore) with a large number of tabs. Verify that system is still responsive.
Review URL: http://codereview.chromium.org/6459003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74332 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_linux.cc')
-rw-r--r-- | base/process_linux.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/base/process_linux.cc b/base/process_linux.cc index 21ed933..14c2424 100644 --- a/base/process_linux.cc +++ b/base/process_linux.cc @@ -11,7 +11,14 @@ namespace base { +#if defined(OS_CHROMEOS) +// We are more aggressive in our lowering of background process priority +// for chromeos as we have much more control over other processes running +// on the machine. +const int kPriorityAdjustment = 19; +#else const int kPriorityAdjustment = 5; +#endif bool Process::IsProcessBackgrounded() const { DCHECK(process_); |