diff options
author | rmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-29 19:32:45 +0000 |
---|---|---|
committer | rmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-29 19:32:45 +0000 |
commit | f6eb4ec6fe4c958d615b4d17bdee2d0c576ad502 (patch) | |
tree | a80f016a68e9e4b27134e236db37e40a25ab3dcd /content/zygote | |
parent | 97c72f5cd4d7ff5e906d946c6b48b95104dd0349 (diff) | |
download | chromium_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 'content/zygote')
-rw-r--r-- | content/zygote/zygote_main_linux.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/zygote/zygote_main_linux.cc b/content/zygote/zygote_main_linux.cc index 567b305..503b348 100644 --- a/content/zygote/zygote_main_linux.cc +++ b/content/zygote/zygote_main_linux.cc @@ -274,6 +274,7 @@ void PreloadPepperPlugins() { static void PreSandboxInit() { base::RandUint64(); + base::SysInfo::AmountOfPhysicalMemory(); base::SysInfo::MaxSharedMemorySize(); // ICU DateFormat class (used in base/time_format.cc) needs to get the |