diff options
author | rmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-04 20:50:14 +0000 |
---|---|---|
committer | rmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-04 20:50:14 +0000 |
commit | 849447aa45551c4b40efd01ebcaad9242c207789 (patch) | |
tree | 04d2b64f95e717f0cd2dcdeedd9cc2d2e93712ba /content/zygote | |
parent | 33f0272ddb86f0116e60658031ad29b5c5d0c48b (diff) | |
download | chromium_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 '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 |