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

Unified Diff: extensions/browser/api/cast_channel/cast_transport.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
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: extensions/browser/api/cast_channel/cast_transport.cc
diff --git a/extensions/browser/api/cast_channel/cast_transport.cc b/extensions/browser/api/cast_channel/cast_transport.cc
index d1c9833aff9947bc53aa3b86388b72727bfe3b95..9572f3bfdd56ce4cd21772cac122ec9157311483 100644
--- a/extensions/browser/api/cast_channel/cast_transport.cc
+++ b/extensions/browser/api/cast_channel/cast_transport.cc
@@ -4,6 +4,9 @@
#include "extensions/browser/api/cast_channel/cast_transport.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <string>
#include <utility>
@@ -409,7 +412,7 @@ int CastTransportImpl::DoRead() {
// Read up to num_bytes_to_read into |current_read_buffer_|.
return socket_->Read(
- read_buffer_.get(), base::checked_cast<uint32>(num_bytes_to_read),
+ read_buffer_.get(), base::checked_cast<uint32_t>(num_bytes_to_read),
base::Bind(&CastTransportImpl::OnReadResult, base::Unretained(this)));
}
@@ -432,7 +435,7 @@ int CastTransportImpl::DoReadComplete(int result) {
logger_->LogSocketEventForMessage(
channel_id_, proto::MESSAGE_READ, current_message_->namespace_(),
base::StringPrintf("Message size: %u",
- static_cast<uint32>(message_size)));
+ static_cast<uint32_t>(message_size)));
SetReadState(READ_STATE_DO_CALLBACK);
} else if (framing_error != CHANNEL_ERROR_NONE) {
DCHECK(!current_message_);
« no previous file with comments | « extensions/browser/api/cast_channel/cast_transport.h ('k') | extensions/browser/api/cast_channel/cast_transport_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698