Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Unified Diff: content/zygote/zygote_main_linux.cc

Issue 55913004: Reland "Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux Sandbox" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Seperate MaxSharedMemorySize and AmountOfPhysicalMemory initialization. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/sys_info_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/zygote/zygote_main_linux.cc
diff --git a/content/zygote/zygote_main_linux.cc b/content/zygote/zygote_main_linux.cc
index 567b3055ccc4dbb9938db0fe0733ee217b76b9b7..503b3487f470dc6ddc78a800e41a646bcc9d4bd6 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
« no previous file with comments | « base/sys_info_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698