diff options
Diffstat (limited to 'extensions/renderer/guest_view/guest_view_container.cc')
-rw-r--r-- | extensions/renderer/guest_view/guest_view_container.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/extensions/renderer/guest_view/guest_view_container.cc b/extensions/renderer/guest_view/guest_view_container.cc index 8a44d5a..be6316d 100644 --- a/extensions/renderer/guest_view/guest_view_container.cc +++ b/extensions/renderer/guest_view/guest_view_container.cc @@ -49,15 +49,8 @@ GuestViewContainer::~GuestViewContainer() {} // static. bool GuestViewContainer::HandlesMessage(const IPC::Message& msg) { - switch (msg.type()) { - case ExtensionsGuestViewMsg_CreateMimeHandlerViewGuestACK::ID: - case ExtensionsGuestViewMsg_MimeHandlerViewGuestOnLoadCompleted::ID: - case GuestViewMsg_GuestAttached::ID: - case GuestViewMsg_GuestDetached::ID: - return true; - default: - return false; - } + return (IPC_MESSAGE_CLASS(msg) == GuestViewMsgStart) || + (IPC_MESSAGE_CLASS(msg) == ExtensionsGuestViewMsgStart); } void GuestViewContainer::RenderFrameDestroyed() { |