summaryrefslogtreecommitdiffstats
path: root/content/zygote
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 /content/zygote
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 'content/zygote')
-rw-r--r--content/zygote/zygote_main_linux.cc1
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