summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authorrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-29 19:32:45 +0000
committerrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-29 19:32:45 +0000
commitf6eb4ec6fe4c958d615b4d17bdee2d0c576ad502 (patch)
treea80f016a68e9e4b27134e236db37e40a25ab3dcd /base/sys_info.h
parent97c72f5cd4d7ff5e906d946c6b48b95104dd0349 (diff)
downloadchromium_src-f6eb4ec6fe4c958d615b4d17bdee2d0c576ad502.zip
chromium_src-f6eb4ec6fe4c958d615b4d17bdee2d0c576ad502.tar.gz
chromium_src-f6eb4ec6fe4c958d615b4d17bdee2d0c576ad502.tar.bz2
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/28833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231613 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)