diff options
author | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-22 22:34:58 +0000 |
---|---|---|
committer | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-22 22:34:58 +0000 |
commit | 73c7c832714fe9a67f1521d1cdcc8ff864fab816 (patch) | |
tree | 56d90d1d66861ec692edbb82fbdab3f2e9de8844 /base/process_linux.cc | |
parent | 37e77e0728caea3744ca15956260904bff58efc2 (diff) | |
download | chromium_src-73c7c832714fe9a67f1521d1cdcc8ff864fab816.zip chromium_src-73c7c832714fe9a67f1521d1cdcc8ff864fab816.tar.gz chromium_src-73c7c832714fe9a67f1521d1cdcc8ff864fab816.tar.bz2 |
CheckForNicePermission: Make sure can_reraise_priority is set in ctor
CID=102592
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/8989035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_linux.cc')
-rw-r--r-- | base/process_linux.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/process_linux.cc b/base/process_linux.cc index cb413e1..9f69596 100644 --- a/base/process_linux.cc +++ b/base/process_linux.cc @@ -107,9 +107,7 @@ bool Process::SetProcessBackgrounded(bool background) { } struct CheckForNicePermission { - bool can_reraise_priority; - - CheckForNicePermission() { + CheckForNicePermission() : can_reraise_priority(false) { // We won't be able to raise the priority if we don't have the right rlimit. // The limit may be adjusted in /etc/security/limits.conf for PAM systems. struct rlimit rlim; @@ -118,6 +116,8 @@ struct CheckForNicePermission { can_reraise_priority = true; } }; + + bool can_reraise_priority; }; // static |