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

Unified Diff: content/common/indexed_db/indexed_db_message_filter.cc

Issue 11570038: Remove IPC::MessageIterator. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 8 years 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 | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/indexed_db/indexed_db_message_filter.cc
diff --git a/content/common/indexed_db/indexed_db_message_filter.cc b/content/common/indexed_db/indexed_db_message_filter.cc
index 1574243f579775965d1487f076bd7cbc9f064c0b..189f568a022c2e580e72baf2853648745d323e82 100644
--- a/content/common/indexed_db/indexed_db_message_filter.cc
+++ b/content/common/indexed_db/indexed_db_message_filter.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/location.h"
#include "base/message_loop_proxy.h"
+#include "base/pickle.h"
#include "content/common/indexed_db/indexed_db_dispatcher.h"
#include "content/common/indexed_db/indexed_db_messages.h"
#include "webkit/glue/worker_task_runner.h"
@@ -22,7 +23,9 @@ IndexedDBMessageFilter::IndexedDBMessageFilter() :
bool IndexedDBMessageFilter::OnMessageReceived(const IPC::Message& msg) {
if (IPC_MESSAGE_CLASS(msg) != IndexedDBMsgStart)
return false;
- int ipc_thread_id = IPC::MessageIterator(msg).NextInt();
+ int ipc_thread_id = -1;
+ bool result = PickleIterator(msg).ReadInt(&ipc_thread_id);
+ DCHECK(result);
base::Closure closure = base::Bind(
&IndexedDBMessageFilter::DispatchMessage, this, msg);
if (ipc_thread_id)
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_unittest.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698