diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 16:14:37 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-24 16:14:37 +0000 |
commit | 611cc2f8f49fa5468cf3dc2f56052f5d95196a01 (patch) | |
tree | 5ed57a62e1e3d032f63b46515a74ec78b05ada78 /base/sys_info_posix.cc | |
parent | 8af455ad2a4bc2bfed9fbe3561697b42f6acf9c9 (diff) | |
download | chromium_src-611cc2f8f49fa5468cf3dc2f56052f5d95196a01.zip chromium_src-611cc2f8f49fa5468cf3dc2f56052f5d95196a01.tar.gz chromium_src-611cc2f8f49fa5468cf3dc2f56052f5d95196a01.tar.bz2 |
Revert r10259 & subsequent fixes.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10262 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info_posix.cc')
-rw-r--r-- | base/sys_info_posix.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc index 1d218ce..61c527a 100644 --- a/base/sys_info_posix.cc +++ b/base/sys_info_posix.cc @@ -134,4 +134,14 @@ size_t SysInfo::VMAllocationGranularity() { return getpagesize(); } +#if defined(OS_MACOSX) +// static +void SysInfo::CacheSysInfo() { + // Due to startup time concerns [premature optimization?] we only cache values + // from functions we know to be called in the renderer & fail when the sandbox + // is enabled. + NumberOfProcessors(); +} +#endif + } // namespace base |