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

Unified Diff: ipc/mojo/ipc_message_pipe_reader.cc

Issue 1322253003: ipc: Convert int types from basictypes.h to the ones from stdint.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 3 months 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 | « ipc/mojo/ipc_channel_mojo_unittest.cc ('k') | ipc/mojo/ipc_mojo_bootstrap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/mojo/ipc_message_pipe_reader.cc
diff --git a/ipc/mojo/ipc_message_pipe_reader.cc b/ipc/mojo/ipc_message_pipe_reader.cc
index 6609f26bd0fbe305e0189f3ca3011e597f861a23..11aab8d6155bf27aaf24bc0b1ac9f9775a19f1ff 100644
--- a/ipc/mojo/ipc_message_pipe_reader.cc
+++ b/ipc/mojo/ipc_message_pipe_reader.cc
@@ -4,6 +4,8 @@
#include "ipc/mojo/ipc_message_pipe_reader.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/location.h"
@@ -77,9 +79,9 @@ bool MessagePipeReader::Send(scoped_ptr<Message> message) {
if (result == MOJO_RESULT_OK) {
result = MojoWriteMessage(handle(),
message->data(),
- static_cast<uint32>(message->size()),
+ static_cast<uint32_t>(message->size()),
handles.empty() ? nullptr : &handles[0],
- static_cast<uint32>(handles.size()),
+ static_cast<uint32_t>(handles.size()),
MOJO_WRITE_MESSAGE_FLAG_NONE);
}
@@ -98,7 +100,7 @@ bool MessagePipeReader::Send(scoped_ptr<Message> message) {
void MessagePipeReader::OnMessageReceived() {
Message message(data_buffer().empty() ? "" : &data_buffer()[0],
- static_cast<uint32>(data_buffer().size()));
+ static_cast<uint32_t>(data_buffer().size()));
std::vector<MojoHandle> handle_buffer;
TakeHandleBuffer(&handle_buffer);
« no previous file with comments | « ipc/mojo/ipc_channel_mojo_unittest.cc ('k') | ipc/mojo/ipc_mojo_bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698