Index: ipc/ipc_message.cc |
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc |
index c5a5a83cc65dbe3d281bed0c69d35ed3267b6852..99c56efa56e108fb09f18217ab4b031f65cbc231 100644 |
--- a/ipc/ipc_message.cc |
+++ b/ipc/ipc_message.cc |
@@ -155,4 +155,8 @@ bool Message::HasAttachments() const { |
return attachment_set_.get() && !attachment_set_->empty(); |
} |
+bool Message::HasMojoHandles() const { |
+ return attachment_set_.get() && 0 < attachment_set_->num_mojo_handles(); |
+} |
+ |
} // namespace IPC |