Index: base/sys_info_win.cc |
diff --git a/base/sys_info_win.cc b/base/sys_info_win.cc |
index d1c485c129e8bc117760baa6f9dc6b55cd8b85a3..cb184bae2589d607919858bacc4a1969353c5e98 100644 |
--- a/base/sys_info_win.cc |
+++ b/base/sys_info_win.cc |
@@ -12,7 +12,6 @@ |
#include "base/files/file_path.h" |
#include "base/logging.h" |
-#include "base/process/process_metrics.h" |
#include "base/strings/stringprintf.h" |
#include "base/threading/thread_restrictions.h" |
#include "base/win/windows_version.h" |
@@ -69,10 +68,7 @@ |
// static |
int64_t SysInfo::AmountOfAvailablePhysicalMemory() { |
- SystemMemoryInfoKB info; |
- if (!GetSystemMemoryInfo(&info)) |
- return 0; |
- return static_cast<int64_t>(info.avail_phys) * 1024; |
+ return AmountOfMemory(&MEMORYSTATUSEX::ullAvailPhys); |
} |
// static |