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

Unified Diff: components/component_updater/component_updater_utils.cc

Issue 590333002: Replace usage of basictypes.h with a combination of stdint.h and base/macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 6 years, 3 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
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));
}
« no previous file with comments | « components/component_updater/component_updater_service.cc ('k') | components/component_updater/crx_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698