Index: ipc/ipc_message.cc |
diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc |
index 7aa268e6dfba9143a8c9e4d9f7987bd60ffa7628..fcdbb6aa6d5725fc17803a9d026e222dbac1ef7b 100644 |
--- a/ipc/ipc_message.cc |
+++ b/ipc/ipc_message.cc |
@@ -157,7 +157,12 @@ bool Message::HasAttachments() const { |
} |
bool Message::HasMojoHandles() const { |
- return attachment_set_.get() && 0 < attachment_set_->num_mojo_handles(); |
+ return attachment_set_.get() && attachment_set_->num_mojo_handles() > 0; |
+} |
+ |
+bool Message::HasBrokerableAttachments() const { |
+ return attachment_set_.get() && |
+ attachment_set_->num_brokerable_attachments() > 0; |
} |
} // namespace IPC |