Index: components/metrics/serialization/serialization_utils.cc |
diff --git a/components/metrics/serialization/serialization_utils.cc b/components/metrics/serialization/serialization_utils.cc |
index 4c4be8c4d426bb77bc980a984b10400d9b82254a..97a6e0fb4db7da32180e85a5e02d9d552f28ebab 100644 |
--- a/components/metrics/serialization/serialization_utils.cc |
+++ b/components/metrics/serialization/serialization_utils.cc |
@@ -5,6 +5,7 @@ |
#include "components/metrics/serialization/serialization_utils.h" |
#include <errno.h> |
+#include <stdint.h> |
#include <sys/file.h> |
#include <string> |
@@ -196,7 +197,7 @@ bool SerializationUtils::WriteMetricToFile(const MetricSample& sample, |
} |
std::string msg = sample.ToString(); |
- int32 size = msg.length() + sizeof(int32); |
+ int32_t size = msg.length() + sizeof(int32_t); |
if (size > kMessageMaxLength) { |
DPLOG(ERROR) << "cannot write message: too long: " << filename; |
return false; |