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

Unified Diff: components/gcm_driver/gcm_stats_recorder_impl.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/gcm_driver/gcm_stats_recorder_impl.cc
diff --git a/components/gcm_driver/gcm_stats_recorder_impl.cc b/components/gcm_driver/gcm_stats_recorder_impl.cc
index e871d0360a9a5aa2f14e1c6397872020c5c0e6fb..de3035459fe791c89c695edaca83207f2465aa55 100644
--- a/components/gcm_driver/gcm_stats_recorder_impl.cc
+++ b/components/gcm_driver/gcm_stats_recorder_impl.cc
@@ -15,8 +15,8 @@
namespace gcm {
-const uint32 MAX_LOGGED_ACTIVITY_COUNT = 100;
-const int64 RECEIVED_DATA_MESSAGE_BURST_LENGTH_SECONDS = 2;
+const uint32_t MAX_LOGGED_ACTIVITY_COUNT = 100;
+const int64_t RECEIVED_DATA_MESSAGE_BURST_LENGTH_SECONDS = 2;
namespace {
@@ -181,14 +181,15 @@ void GCMStatsRecorderImpl::RecordCheckin(
NotifyActivityRecorded();
}
-void GCMStatsRecorderImpl::RecordCheckinInitiated(uint64 android_id) {
+void GCMStatsRecorderImpl::RecordCheckinInitiated(uint64_t android_id) {
if (!is_recording_)
return;
RecordCheckin("Checkin initiated",
base::StringPrintf("Android Id: %" PRIu64, android_id));
}
-void GCMStatsRecorderImpl::RecordCheckinDelayedDueToBackoff(int64 delay_msec) {
+void GCMStatsRecorderImpl::RecordCheckinDelayedDueToBackoff(
+ int64_t delay_msec) {
if (!is_recording_)
return;
RecordCheckin("Checkin backoff",
@@ -233,7 +234,7 @@ void GCMStatsRecorderImpl::RecordConnectionInitiated(const std::string& host) {
}
void GCMStatsRecorderImpl::RecordConnectionDelayedDueToBackoff(
- int64 delay_msec) {
+ int64_t delay_msec) {
if (!is_recording_)
return;
RecordConnection("Connection backoff",
@@ -307,7 +308,7 @@ void GCMStatsRecorderImpl::RecordRegistrationResponse(
void GCMStatsRecorderImpl::RecordRegistrationRetryDelayed(
const std::string& app_id,
const std::string& source,
- int64 delay_msec,
+ int64_t delay_msec,
int retries_left) {
if (!is_recording_)
return;
@@ -344,7 +345,7 @@ void GCMStatsRecorderImpl::RecordUnregistrationResponse(
void GCMStatsRecorderImpl::RecordUnregistrationRetryDelayed(
const std::string& app_id,
const std::string& source,
- int64 delay_msec,
+ int64_t delay_msec,
int retries_left) {
if (!is_recording_)
return;
« no previous file with comments | « components/gcm_driver/gcm_stats_recorder_impl.h ('k') | components/gcm_driver/gcm_stats_recorder_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698