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

Unified Diff: components/metrics/stability_metrics_helper.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
Index: components/metrics/stability_metrics_helper.cc
diff --git a/components/metrics/stability_metrics_helper.cc b/components/metrics/stability_metrics_helper.cc
index 1597791afb6b34a8ab002c638fa3ef194bc2aabf..1f863c06b769570781b8abee170eaaf2d234a972 100644
--- a/components/metrics/stability_metrics_helper.cc
+++ b/components/metrics/stability_metrics_helper.cc
@@ -4,6 +4,8 @@
#include "components/metrics/stability_metrics_helper.h"
+#include <stdint.h>
+
#include <vector>
#include "base/logging.h"
@@ -11,6 +13,7 @@
#include "base/metrics/sparse_histogram.h"
#include "base/prefs/pref_registry_simple.h"
#include "base/prefs/pref_service.h"
+#include "build/build_config.h"
#include "components/metrics/metrics_pref_names.h"
#include "components/metrics/proto/system_profile.pb.h"
@@ -207,7 +210,7 @@ void StabilityMetricsHelper::IncrementPrefValue(const char* path) {
}
void StabilityMetricsHelper::IncrementLongPrefsValue(const char* path) {
- int64 value = local_state_->GetInt64(path);
+ int64_t value = local_state_->GetInt64(path);
local_state_->SetInt64(path, value + 1);
}
« no previous file with comments | « components/metrics/stability_metrics_helper.h ('k') | components/metrics/stability_metrics_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698