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

Unified Diff: base/sys_info_mac.cc

Issue 10704123: Implement SysInfo for iOS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove a blank line Created 8 years, 5 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_ios.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_mac.cc
diff --git a/base/sys_info_mac.cc b/base/sys_info_mac.cc
index d8210a299932571fd0d41042918daf38e06577e3..2d100b8d62d715c1f4b3257445c75a1b8516a721 100644
--- a/base/sys_info_mac.cc
+++ b/base/sys_info_mac.cc
@@ -46,12 +46,11 @@ int64 SysInfo::AmountOfPhysicalMemory() {
HOST_BASIC_INFO,
reinterpret_cast<host_info_t>(&hostinfo),
&count);
- DCHECK_EQ(HOST_BASIC_INFO_COUNT, count);
if (result != KERN_SUCCESS) {
NOTREACHED();
return 0;
}
-
+ DCHECK_EQ(HOST_BASIC_INFO_COUNT, count);
return static_cast<int64>(hostinfo.max_mem);
}
« no previous file with comments | « base/sys_info_ios.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698