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

Unified Diff: ipc/ipc_message_utils.cc

Issue 1286883003: Revert of IPC: Add attachment brokering support to the message header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/ipc_message_start.h ('k') | ipc/ipc_test_message_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_utils.cc
diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc
index 3670497ae00dd7a5df66f4c153e38a2228bc68b1..dbb2572e6683c707ead39035b42ecbb223dc3a64 100644
--- a/ipc/ipc_message_utils.cc
+++ b/ipc/ipc_message_utils.cc
@@ -452,7 +452,7 @@
void ParamTraits<BrokerableAttachment::AttachmentId>::Write(
Message* m,
const param_type& p) {
- m->WriteBytes(p.nonce, static_cast<int>(BrokerableAttachment::kNonceSize));
+ m->WriteBytes(p.nonce, BrokerableAttachment::kNonceSize);
}
bool ParamTraits<BrokerableAttachment::AttachmentId>::Read(
@@ -460,10 +460,8 @@
base::PickleIterator* iter,
param_type* r) {
const char* data;
- if (!iter->ReadBytes(&data,
- static_cast<int>(BrokerableAttachment::kNonceSize))) {
- return false;
- }
+ if (!iter->ReadBytes(&data, BrokerableAttachment::kNonceSize))
+ return false;
memcpy(r->nonce, data, BrokerableAttachment::kNonceSize);
return true;
}
« no previous file with comments | « ipc/ipc_message_start.h ('k') | ipc/ipc_test_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698