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

Unified Diff: ipc/ipc_message_utils.cc

Issue 8322013: Fix IPC logging on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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_macros.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_utils.cc
===================================================================
--- ipc/ipc_message_utils.cc (revision 105666)
+++ ipc/ipc_message_utils.cc (working copy)
@@ -472,7 +472,7 @@
void ParamTraits<LogData>::Write(Message* m, const param_type& p) {
WriteParam(m, p.channel);
WriteParam(m, p.routing_id);
- WriteParam(m, static_cast<int>(p.type));
+ WriteParam(m, p.type);
WriteParam(m, p.flags);
WriteParam(m, p.sent);
WriteParam(m, p.receive);
@@ -481,18 +481,15 @@
}
bool ParamTraits<LogData>::Read(const Message* m, void** iter, param_type* r) {
- int type = -1;
- bool result =
+ return
ReadParam(m, iter, &r->channel) &&
ReadParam(m, iter, &r->routing_id) &&
- ReadParam(m, iter, &type) &&
+ ReadParam(m, iter, &r->type) &&
ReadParam(m, iter, &r->flags) &&
ReadParam(m, iter, &r->sent) &&
ReadParam(m, iter, &r->receive) &&
ReadParam(m, iter, &r->dispatch) &&
ReadParam(m, iter, &r->params);
- r->type = static_cast<uint16>(type);
- return result;
}
} // namespace IPC
« no previous file with comments | « ipc/ipc_message_macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698