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

Unified Diff: content/ppapi_plugin/ppapi_thread.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: content/ppapi_plugin/ppapi_thread.cc
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
index 8ef6d6b3b587619aed312c5f9b44bdb4d86ceb8d..d423be0c4ec9690e99dbcb0ffd6151b95f432cc2 100644
--- a/content/ppapi_plugin/ppapi_thread.cc
+++ b/content/ppapi_plugin/ppapi_thread.cc
@@ -256,7 +256,7 @@ void PpapiThread::OnMsgSetNetworkState(bool online) {
void PpapiThread::OnPluginDispatcherMessageReceived(const IPC::Message& msg) {
// The first parameter should be a plugin dispatcher ID.
- void* iter = NULL;
+ PickleReader iter(msg);
uint32 id = 0;
if (!msg.ReadUInt32(&iter, &id)) {
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698