diff options
author | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-04 22:28:12 +0000 |
---|---|---|
committer | bbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-04 22:28:12 +0000 |
commit | 753bb25fc70b560fb3539e2b63843a193ccb295a (patch) | |
tree | d42966216756764b92d90162e993ab766c307dc7 /ppapi/host | |
parent | 715e27238d32ba17d2c06acf37bca40bb0a180cb (diff) | |
download | chromium_src-753bb25fc70b560fb3539e2b63843a193ccb295a.zip chromium_src-753bb25fc70b560fb3539e2b63843a193ccb295a.tar.gz chromium_src-753bb25fc70b560fb3539e2b63843a193ccb295a.tar.bz2 |
Revert https://src.chromium.org/viewvc/chrome?view=rev&revision=231330
This is a speculative revert to see if it's the cause of hanging renderers.
BUG=313112
Review URL: https://codereview.chromium.org/57783006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232819 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/host')
-rw-r--r-- | ppapi/host/resource_message_filter_unittest.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ppapi/host/resource_message_filter_unittest.cc b/ppapi/host/resource_message_filter_unittest.cc index 38fd9d8f..78fc23c 100644 --- a/ppapi/host/resource_message_filter_unittest.cc +++ b/ppapi/host/resource_message_filter_unittest.cc @@ -64,7 +64,8 @@ class MyResourceHost : public ResourceHost { HostMessageContext* context) OVERRIDE { last_handled_msg_ = msg; if (msg.type() == msg_type_) { - context->reply_msg = IPC::Message(0, reply_msg_type_); + context->reply_msg = IPC::Message(0, reply_msg_type_, + IPC::Message::PRIORITY_NORMAL); return PP_OK; } return PP_ERROR_FAILED; @@ -122,7 +123,8 @@ class MyResourceFilter : public ResourceMessageFilter { last_handled_msg_ = msg; last_message_loop_ = base::MessageLoop::current(); if (msg.type() == msg_type_) { - context->reply_msg = IPC::Message(0, reply_msg_type_); + context->reply_msg = IPC::Message(0, reply_msg_type_, + IPC::Message::PRIORITY_NORMAL); return PP_OK; } return PP_ERROR_FAILED; @@ -164,9 +166,9 @@ TEST_F(ResourceMessageFilterTest, TestHandleMessage) { proxy::ResourceMessageCallParams params(resource, 1); params.set_has_callback(); HostMessageContext context(params); - IPC::Message message1(0, MSG1_TYPE); - IPC::Message message2(0, MSG2_TYPE); - IPC::Message message3(0, MSG3_TYPE); + IPC::Message message1(0, MSG1_TYPE, IPC::Message::PRIORITY_NORMAL); + IPC::Message message2(0, MSG2_TYPE, IPC::Message::PRIORITY_NORMAL); + IPC::Message message3(0, MSG3_TYPE, IPC::Message::PRIORITY_NORMAL); // Message 1 handled by the first filter. host.HandleMessage(message1, &context); |