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

Unified Diff: base/process/process_metrics_posix.cc

Issue 1543293004: Switch to standard integer types in base/process/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ssize_t 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/process/process_metrics_openbsd.cc ('k') | base/process/process_metrics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_metrics_posix.cc
diff --git a/base/process/process_metrics_posix.cc b/base/process/process_metrics_posix.cc
index 3f1bcb63e10595471028816539d9e16881e2cf52..29fb591e22846675cd859f604ca1bb1fcbfb9021 100644
--- a/base/process/process_metrics_posix.cc
+++ b/base/process/process_metrics_posix.cc
@@ -4,16 +4,19 @@
#include "base/process/process_metrics.h"
+#include <stddef.h>
+#include <stdint.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <unistd.h>
#include "base/logging.h"
+#include "build/build_config.h"
namespace base {
-int64 TimeValToMicroseconds(const struct timeval& tv) {
- int64 ret = tv.tv_sec; // Avoid (int * int) integer overflow.
+int64_t TimeValToMicroseconds(const struct timeval& tv) {
+ int64_t ret = tv.tv_sec; // Avoid (int * int) integer overflow.
ret *= Time::kMicrosecondsPerSecond;
ret += tv.tv_usec;
return ret;
« no previous file with comments | « base/process/process_metrics_openbsd.cc ('k') | base/process/process_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698