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

Unified Diff: base/sys_info_win.cc

Issue 18622: POSIX: Porting renderer/render_process.cc, low hanging fruit (Closed)
Patch Set: Created 11 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/sys_info_posix.cc ('k') | chrome/renderer/render_process.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_win.cc
diff --git a/base/sys_info_win.cc b/base/sys_info_win.cc
index 4d52c4a9c85d603936b90718f0d164b58dec597a..7690e81a8ce33138554e2faae4bb7b89fc13956e 100644
--- a/base/sys_info_win.cc
+++ b/base/sys_info_win.cc
@@ -100,4 +100,12 @@ int SysInfo::DisplayCount() {
return GetSystemMetrics(SM_CMONITORS);
}
+// static
+size_t SysInfo::VMAllocationGranularity() {
+ SYSTEM_INFO sysinfo;
+ GetSystemInfo(&info);
+
+ return info.dwAllocationGranularity;
+}
+
} // namespace base
« no previous file with comments | « base/sys_info_posix.cc ('k') | chrome/renderer/render_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698