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

Unified Diff: base/sys_info_posix.cc

Issue 1498003003: Remove kint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: INT64_MAX Created 5 years 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_openbsd.cc ('k') | base/sys_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_posix.cc
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc
index 3d49bf94da925d9032ecdefdb181ed6bc08bf38f..407134da7f2b9a5b32ceeca3687ce5fc2d11beef 100644
--- a/base/sys_info_posix.cc
+++ b/base/sys_info_posix.cc
@@ -11,7 +11,6 @@
#include <sys/utsname.h>
#include <unistd.h>
-#include "base/basictypes.h"
#include "base/files/file_util.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
@@ -57,7 +56,7 @@ base::LazyInstance<
g_lazy_number_of_processors = LAZY_INSTANCE_INITIALIZER;
#endif
-int64 AmountOfVirtualMemory() {
+int64_t AmountOfVirtualMemory() {
struct rlimit limit;
int result = getrlimit(RLIMIT_DATA, &limit);
if (result != 0) {
@@ -68,7 +67,7 @@ int64 AmountOfVirtualMemory() {
}
base::LazyInstance<
- base::internal::LazySysInfoValue<int64, AmountOfVirtualMemory> >::Leaky
+ base::internal::LazySysInfoValue<int64_t, AmountOfVirtualMemory>>::Leaky
g_lazy_virtual_memory = LAZY_INSTANCE_INITIALIZER;
} // namespace
@@ -82,18 +81,18 @@ int SysInfo::NumberOfProcessors() {
#endif
// static
-int64 SysInfo::AmountOfVirtualMemory() {
+int64_t SysInfo::AmountOfVirtualMemory() {
return g_lazy_virtual_memory.Get().value();
}
// static
-int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) {
+int64_t SysInfo::AmountOfFreeDiskSpace(const FilePath& path) {
base::ThreadRestrictions::AssertIOAllowed();
struct statvfs stats;
if (HANDLE_EINTR(statvfs(path.value().c_str(), &stats)) != 0)
return -1;
- return static_cast<int64>(stats.f_bavail) * stats.f_frsize;
+ return static_cast<int64_t>(stats.f_bavail) * stats.f_frsize;
}
#if !defined(OS_MACOSX) && !defined(OS_ANDROID)
« no previous file with comments | « base/sys_info_openbsd.cc ('k') | base/sys_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698