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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « base/sys_info_posix.cc ('k') | chrome/renderer/render_process.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 if (height) 94 if (height)
95 *height = GetSystemMetrics(SM_CYSCREEN); 95 *height = GetSystemMetrics(SM_CYSCREEN);
96 } 96 }
97 97
98 // static 98 // static
99 int SysInfo::DisplayCount() { 99 int SysInfo::DisplayCount() {
100 return GetSystemMetrics(SM_CMONITORS); 100 return GetSystemMetrics(SM_CMONITORS);
101 } 101 }
102 102
103 // static
104 size_t SysInfo::VMAllocationGranularity() {
105 SYSTEM_INFO sysinfo;
106 GetSystemInfo(&info);
107
108 return info.dwAllocationGranularity;
109 }
110
103 } // namespace base 111 } // namespace base
OLDNEW
« 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