Index: components/component_updater/component_updater_utils.cc |
diff --git a/components/component_updater/component_updater_utils.cc b/components/component_updater/component_updater_utils.cc |
index ef73f3418efbb85efba4be681e2191bb919d7a9d..a8bcec8bc64056fae7a93b8225bc230c66dcc16e 100644 |
--- a/components/component_updater/component_updater_utils.cc |
+++ b/components/component_updater/component_updater_utils.cc |
@@ -4,6 +4,7 @@ |
#include "components/component_updater/component_updater_utils.h" |
+#include <stdint.h> |
#include <cmath> |
#include "base/files/file_path.h" |
@@ -33,7 +34,7 @@ namespace { |
// Returns the amount of physical memory in GB, rounded to the nearest GB. |
int GetPhysicalMemoryGB() { |
const double kOneGB = 1024 * 1024 * 1024; |
- const int64 phys_mem = base::SysInfo::AmountOfPhysicalMemory(); |
+ const int64_t phys_mem = base::SysInfo::AmountOfPhysicalMemory(); |
return static_cast<int>(std::floor(0.5 + phys_mem / kOneGB)); |
} |