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

Side by Side Diff: base/sys_info_posix.cc

Issue 27088: Additional fix for Sandboxed WebKit on OS X. (Closed)
Patch Set: Fixes Created 11 years, 10 months 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/sys_info.h" 5 #include "base/sys_info.h"
6 #include "base/basictypes.h" 6 #include "base/basictypes.h"
7 7
8 #include <errno.h> 8 #include <errno.h>
9 #include <string.h> 9 #include <string.h>
10 #include <sys/statvfs.h> 10 #include <sys/statvfs.h>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 int SysInfo::DisplayCount() { 127 int SysInfo::DisplayCount() {
128 NOTIMPLEMENTED(); 128 NOTIMPLEMENTED();
129 return 1; 129 return 1;
130 } 130 }
131 131
132 // static 132 // static
133 size_t SysInfo::VMAllocationGranularity() { 133 size_t SysInfo::VMAllocationGranularity() {
134 return getpagesize(); 134 return getpagesize();
135 } 135 }
136 136
137 #if defined(OS_MACOSX)
138 // static
139 void SysInfo::CacheSysInfo() {
140 // Due to startup time concerns [premature optimization?] we only cache values
141 // from functions we know to be called in the renderer & fail when the sandbox
142 // is enabled.
143 NumberOfProcessors();
144 }
145 #endif
146
147 } // namespace base 137 } // namespace base
OLDNEW
« base/sys_info.h ('K') | « base/sys_info_mac.cc ('k') | base/sys_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698