Bug fix: in process router should not expect a sync message from host to...

Bug fix: in process router should not expect a sync message from host to plugin.  Replies to sync messages are not sync message.

BUG=


Review URL: https://chromiumcodereview.appspot.com/11112004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162229 0039d316-1c4b-4281-b951-d872f2087c98
parent 177e62bc
...@@ -87,8 +87,8 @@ bool PepperInProcessRouter::SendToHost(IPC::Message* msg) { ...@@ -87,8 +87,8 @@ bool PepperInProcessRouter::SendToHost(IPC::Message* msg) {
bool PepperInProcessRouter::SendToPlugin(IPC::Message* msg) { bool PepperInProcessRouter::SendToPlugin(IPC::Message* msg) {
scoped_ptr<IPC::Message> message(msg); scoped_ptr<IPC::Message> message(msg);
if (msg->is_sync()) { CHECK(!msg->is_sync());
CHECK(IPC::SyncMessage::IsMessageReplyTo(*message, pending_message_id_)); if (IPC::SyncMessage::IsMessageReplyTo(*message, pending_message_id_)) {
if (!msg->is_reply_error()) if (!msg->is_reply_error())
reply_result_ = reply_deserializer_->SerializeOutputParameters(*message); reply_result_ = reply_deserializer_->SerializeOutputParameters(*message);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment