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

Unified Diff: google_apis/gcm/base/mcs_message.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/base/mcs_message.h ('k') | google_apis/gcm/base/mcs_message_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gcm/base/mcs_message.cc
diff --git a/google_apis/gcm/base/mcs_message.cc b/google_apis/gcm/base/mcs_message.cc
index f0c130baf89facd0f2c9904af8f14cdcfca87f3f..c3d51510bcfd84c950b4b646a15f31b867534b78 100644
--- a/google_apis/gcm/base/mcs_message.cc
+++ b/google_apis/gcm/base/mcs_message.cc
@@ -11,7 +11,7 @@ namespace gcm {
MCSMessage::Core::Core() {}
-MCSMessage::Core::Core(uint8 tag,
+MCSMessage::Core::Core(uint8_t tag,
const google::protobuf::MessageLite& protobuf) {
scoped_ptr<google::protobuf::MessageLite> owned_protobuf(protobuf.New());
owned_protobuf->CheckTypeAndMergeFrom(protobuf);
@@ -19,7 +19,7 @@ MCSMessage::Core::Core(uint8 tag,
}
MCSMessage::Core::Core(
- uint8 tag,
+ uint8_t tag,
scoped_ptr<const google::protobuf::MessageLite> protobuf) {
protobuf_ = protobuf.Pass();
}
@@ -38,19 +38,17 @@ MCSMessage::MCSMessage(const google::protobuf::MessageLite& protobuf)
core_(new Core(tag_, protobuf)) {
}
-MCSMessage::MCSMessage(uint8 tag,
+MCSMessage::MCSMessage(uint8_t tag,
const google::protobuf::MessageLite& protobuf)
- : tag_(tag),
- size_(protobuf.ByteSize()),
- core_(new Core(tag_, protobuf)) {
+ : tag_(tag), size_(protobuf.ByteSize()), core_(new Core(tag_, protobuf)) {
DCHECK_EQ(tag, GetMCSProtoTag(protobuf));
}
-MCSMessage::MCSMessage(uint8 tag,
+MCSMessage::MCSMessage(uint8_t tag,
scoped_ptr<const google::protobuf::MessageLite> protobuf)
- : tag_(tag),
- size_(protobuf->ByteSize()),
- core_(new Core(tag_, protobuf.Pass())) {
+ : tag_(tag),
+ size_(protobuf->ByteSize()),
+ core_(new Core(tag_, protobuf.Pass())) {
DCHECK_EQ(tag, GetMCSProtoTag(core_->Get()));
}
« no previous file with comments | « google_apis/gcm/base/mcs_message.h ('k') | google_apis/gcm/base/mcs_message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698