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-01 01:55:39 +0000
committerrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-01 01:55:39 +0000
commit69516cafc328c5080672cfa97e92dd8fbbcf64de (patch)
tree838e27fe8ac595b3628fc4a47f01fa58b86fc70c /base/sys_info.h
parent88ac22b46582c70db679c2b4a695ec301e98c67f (diff)
downloadchromium_src-69516cafc328c5080672cfa97e92dd8fbbcf64de.zip
chromium_src-69516cafc328c5080672cfa97e92dd8fbbcf64de.tar.gz
chromium_src-69516cafc328c5080672cfa97e92dd8fbbcf64de.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/52403002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232274 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)