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

Unified Diff: google_apis/gcm/engine/connection_handler_impl.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
Index: google_apis/gcm/engine/connection_handler_impl.cc
diff --git a/google_apis/gcm/engine/connection_handler_impl.cc b/google_apis/gcm/engine/connection_handler_impl.cc
index 95c02865e4d2c77aeeed7bcf1441eb7d59056e61..0b7dce94eefdb6eeaa75b9284f6e26bd6e03010d 100644
--- a/google_apis/gcm/engine/connection_handler_impl.cc
+++ b/google_apis/gcm/engine/connection_handler_impl.cc
@@ -289,7 +289,7 @@ void ConnectionHandlerImpl::WaitForData(ProcessingState state) {
}
void ConnectionHandlerImpl::OnGotVersion() {
- uint8 version = 0;
+ uint8_t version = 0;
{
CodedInputStream coded_input_stream(input_stream_.get());
coded_input_stream.ReadRaw(&version, 1);
@@ -421,8 +421,8 @@ void ConnectionHandlerImpl::OnGotMessageBytes() {
int size = 0;
input_stream_->Next(&data_ptr, &size);
payload_input_buffer_.insert(payload_input_buffer_.end(),
- static_cast<const uint8*>(data_ptr),
- static_cast<const uint8*>(data_ptr) + size);
+ static_cast<const uint8_t*>(data_ptr),
+ static_cast<const uint8_t*>(data_ptr) + size);
DCHECK_LE(payload_input_buffer_.size(), message_size_);
if (payload_input_buffer_.size() == message_size_) {
« no previous file with comments | « google_apis/gcm/engine/connection_handler_impl.h ('k') | google_apis/gcm/engine/connection_handler_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698