summaryrefslogtreecommitdiffstats
path: root/base/sys_info.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-02 13:59:08 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-02 13:59:08 +0000
commit0203ed716229301ebcd111f799ecf4367f5b437e (patch)
tree2d9fbcc24ff6cf157de31a8c6550a0da44d4d4d2 /base/sys_info.h
parent49751ba42c5fac56bbc2a1235ebc9586c4bf504c (diff)
downloadchromium_src-0203ed716229301ebcd111f799ecf4367f5b437e.zip
chromium_src-0203ed716229301ebcd111f799ecf4367f5b437e.tar.gz
chromium_src-0203ed716229301ebcd111f799ecf4367f5b437e.tar.bz2
We recently enabled reading sysctl values from inside the sandbox. This CL removes workarounds needed when sysctl reads where blocked.
Review URL: http://codereview.chromium.org/151202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info.h')
-rw-r--r--base/sys_info.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/base/sys_info.h b/base/sys_info.h
index 16b8690..d083377 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -14,8 +14,6 @@ namespace base {
class SysInfo {
public:
// Return the number of logical processors/cores on the current machine.
- // WARNING: On POSIX, this method uses static variables and is not threadsafe
- // until it's been initialized by being called once without a race.
static int NumberOfProcessors();
// Return the number of bytes of physical memory on the current machine.
@@ -46,8 +44,6 @@ class SysInfo {
static std::string OperatingSystemVersion();
// Retrieves detailed numeric values for the OS version.
- // WARNING: On OS X, this method uses static variables and is not threadsafe
- // until it's been initialized by being called once without a race.
// TODO(port): Implement a Linux version of this method and enable the
// corresponding unit test.
static void OperatingSystemVersionNumbers(int32 *major_version,
@@ -68,14 +64,6 @@ class SysInfo {
// Return the smallest amount of memory (in bytes) which the VM system will
// allocate.
static size_t VMAllocationGranularity();
-
-#if defined(OS_MACOSX)
- // Under the OS X Sandbox, our access to the system is limited, this call
- // caches the system info on startup before we turn the Sandbox on.
- // The above functions are all wired up to return the cached value so the rest
- // of the code can call them in the Sandbox without worrying.
- static void CacheSysInfo();
-#endif
};
} // namespace base