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

Unified Diff: components/metrics/metrics_reporting_scheduler.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/metrics_reporting_scheduler.cc
diff --git a/components/metrics/metrics_reporting_scheduler.cc b/components/metrics/metrics_reporting_scheduler.cc
index eafef42528c48eba3b842b2d8f81088d773ff36f..ab117ad01e96d3cc486840b01657b3928308e40e 100644
--- a/components/metrics/metrics_reporting_scheduler.cc
+++ b/components/metrics/metrics_reporting_scheduler.cc
@@ -4,9 +4,12 @@
#include "components/metrics/metrics_reporting_scheduler.h"
+#include <stdint.h>
+
#include "base/compiler_specific.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/string_number_conversions.h"
+#include "build/build_config.h"
#include "components/variations/variations_associated_data.h"
using base::TimeDelta;
@@ -162,9 +165,8 @@ void MetricsReportingScheduler::ScheduleNextUpload() {
void MetricsReportingScheduler::BackOffUploadInterval() {
DCHECK_GT(kBackoffMultiplier, 1.0);
- upload_interval_ = TimeDelta::FromMicroseconds(
- static_cast<int64>(kBackoffMultiplier *
- upload_interval_.InMicroseconds()));
+ upload_interval_ = TimeDelta::FromMicroseconds(static_cast<int64_t>(
+ kBackoffMultiplier * upload_interval_.InMicroseconds()));
TimeDelta max_interval = kMaxBackoffMultiplier * GetStandardUploadInterval();
if (upload_interval_ > max_interval || upload_interval_.InSeconds() < 0) {
« no previous file with comments | « components/metrics/metrics_reporting_scheduler.h ('k') | components/metrics/metrics_reporting_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698