summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authorrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-04 20:50:14 +0000
committerrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-04 20:50:14 +0000
commit849447aa45551c4b40efd01ebcaad9242c207789 (patch)
tree04d2b64f95e717f0cd2dcdeedd9cc2d2e93712ba /base/sys_info.h
parent33f0272ddb86f0116e60658031ad29b5c5d0c48b (diff)
downloadchromium_src-849447aa45551c4b40efd01ebcaad9242c207789.zip
chromium_src-849447aa45551c4b40efd01ebcaad9242c207789.tar.gz
chromium_src-849447aa45551c4b40efd01ebcaad9242c207789.tar.bz2
Reland "Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux Sandbox"
Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable it to be called by the renderer process after the sandbox is sealed. BUG=312241 Review URL: https://codereview.chromium.org/55913004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index ba45bfc..aa40cad 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -75,7 +75,8 @@ class BASE_EXPORT SysInfo {
static size_t VMAllocationGranularity();
#if defined(OS_POSIX) && !defined(OS_MACOSX)
- // Returns the maximum SysV shared memory segment size.
+ // Returns the maximum SysV shared memory segment size, or zero if there is no
+ // limit.
static size_t MaxSharedMemorySize();
#endif // defined(OS_POSIX) && !defined(OS_MACOSX)