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

Unified Diff: google_apis/gcm/engine/account_mapping.cc

Issue 1548673002: Switch to standard integer types in google_apis/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 | « google_apis/gcm/engine/account_mapping.h ('k') | google_apis/gcm/engine/checkin_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/engine/account_mapping.cc
diff --git a/google_apis/gcm/engine/account_mapping.cc b/google_apis/gcm/engine/account_mapping.cc
index 7b0bfb0e3efbc17eb1d742b9684b22ea4e0ebdd2..57f8b809424d78e9014e4ba3807430b79ce6c100 100644
--- a/google_apis/gcm/engine/account_mapping.cc
+++ b/google_apis/gcm/engine/account_mapping.cc
@@ -4,6 +4,8 @@
#include "google_apis/gcm/engine/account_mapping.h"
+#include <stdint.h>
+
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
@@ -13,12 +15,12 @@ namespace gcm {
namespace {
const char kSeparator[] = "&";
-const uint32 kEmailIndex = 0;
-const uint32 kStatusIndex = 1;
-const uint32 kStatusChangeTimestampIndex = 2;
-const uint32 kSizeWithNoMessage = kStatusChangeTimestampIndex + 1;
-const uint32 kMessageIdIndex = 3;
-const uint32 kSizeWithMessage = kMessageIdIndex + 1;
+const uint32_t kEmailIndex = 0;
+const uint32_t kStatusIndex = 1;
+const uint32_t kStatusChangeTimestampIndex = 2;
+const uint32_t kSizeWithNoMessage = kStatusChangeTimestampIndex + 1;
+const uint32_t kMessageIdIndex = 3;
+const uint32_t kSizeWithMessage = kMessageIdIndex + 1;
const char kStatusNew[] = "new";
const char kStatusAdding[] = "adding";
@@ -104,7 +106,7 @@ bool AccountMapping::ParseFromString(const std::string& value) {
if (values.size() == kSizeWithNoMessage && temp_status == ADDING)
return false;
- int64 status_change_ts_internal = 0LL;
+ int64_t status_change_ts_internal = 0LL;
if (!base::StringToInt64(values[kStatusChangeTimestampIndex],
&status_change_ts_internal)) {
return false;
« no previous file with comments | « google_apis/gcm/engine/account_mapping.h ('k') | google_apis/gcm/engine/checkin_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698