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

Unified Diff: chrome/service/cloud_print/printer_job_queue_handler.cc

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/service/cloud_print/printer_job_queue_handler.cc
diff --git a/chrome/service/cloud_print/printer_job_queue_handler.cc b/chrome/service/cloud_print/printer_job_queue_handler.cc
index e3a70b35e27b0a1706228b497b508364f5277526..93bc2169a42341ec0c99989cacedac2328c71de4 100644
--- a/chrome/service/cloud_print/printer_job_queue_handler.cc
+++ b/chrome/service/cloud_print/printer_job_queue_handler.cc
@@ -5,6 +5,8 @@
#include "chrome/service/cloud_print/printer_job_queue_handler.h"
#include <math.h>
+#include <stddef.h>
+#include <stdint.h>
#include <algorithm>
@@ -85,11 +87,12 @@ base::TimeDelta PrinterJobQueueHandler::ComputeBackoffTime(
base::TimeDelta backoff_time =
base::TimeDelta::FromSeconds(kJobFirstWaitTimeSecs);
backoff_time *=
- // casting argument to double and result to uint64 to avoid compilation
+ // casting argument to double and result to uint64_t to avoid compilation
// issues
- static_cast<int64>(pow(
- static_cast<long double>(kJobWaitTimeExponentialMultiplier),
- job_location->second.retries_) + 0.5);
+ static_cast<int64_t>(
+ pow(static_cast<long double>(kJobWaitTimeExponentialMultiplier),
+ job_location->second.retries_) +
+ 0.5);
base::Time scheduled_retry =
job_location->second.last_retry_ + backoff_time;
base::Time now = time_provider_->GetNow();

Powered by Google App Engine
This is Rietveld 408576698