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

Unified Diff: ipc/ipc_channel_posix.cc

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jar feedback Created 8 years, 10 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
Index: ipc/ipc_channel_posix.cc
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index 069869f3a8d9e722f1fdfb8c59979a36c13ec754..d772c28401bf944f7bd94f06ced8cd72fde29e3b 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -708,7 +708,7 @@ bool Channel::ChannelImpl::ProcessIncomingMessages() {
<< " with type " << m.type() << " on fd " << pipe_;
if (IsHelloMessage(&m)) {
// The Hello message contains only the process id.
- void *iter = NULL;
+ PickleReader iter(m);
int pid;
if (!m.ReadInt(&iter, &pid)) {
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698