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

Unified Diff: components/metrics/cloned_install_detector.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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 | « components/metrics/cloned_install_detector.h ('k') | components/metrics/daily_event_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/cloned_install_detector.cc
diff --git a/components/metrics/cloned_install_detector.cc b/components/metrics/cloned_install_detector.cc
index 4d57632caae80befb02cd574d2663eeecc14fe42..ff80116e2b1ac0f020326d8d2edffa3a8d8bcbdc 100644
--- a/components/metrics/cloned_install_detector.cc
+++ b/components/metrics/cloned_install_detector.cc
@@ -4,6 +4,8 @@
#include "components/metrics/cloned_install_detector.h"
+#include <stdint.h>
+
#include <string>
#include "base/bind.h"
@@ -21,8 +23,8 @@ namespace metrics {
namespace {
-uint32 HashRawId(const std::string& value) {
- uint64 hash = base::HashMetricName(value);
+uint32_t HashRawId(const std::string& value) {
+ uint64_t hash = base::HashMetricName(value);
// Only use 24 bits from the 64-bit hash.
return hash & ((1 << 24) - 1);
« no previous file with comments | « components/metrics/cloned_install_detector.h ('k') | components/metrics/daily_event_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698