Chromium Code Reviews| Index: ipc/ipc_message.cc |
| diff --git a/ipc/ipc_message.cc b/ipc/ipc_message.cc |
| index c5a5a83cc65dbe3d281bed0c69d35ed3267b6852..e10bef584fd091a22dd34cba7ea7bd30b6fc15e4 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() && attachment_set_->num_mojo_handles(); |
|
agl
2015/02/04 00:17:46
Feel free to ignore: put "> 0" on the end to avoid
Hajime Morrita
2015/02/04 00:44:51
Done. That's clearer anyway.
|
| +} |
| + |
| } // namespace IPC |