Index: ipc/mojo/ipc_mojo_handle_attachment.cc |
diff --git a/ipc/mojo/ipc_mojo_handle_attachment.cc b/ipc/mojo/ipc_mojo_handle_attachment.cc |
index 98ac5c3c5e0e3d8705379f5e0d9aa27027b35155..9aae281c4eca23689549f3fe23752d7275d44575 100644 |
--- a/ipc/mojo/ipc_mojo_handle_attachment.cc |
+++ b/ipc/mojo/ipc_mojo_handle_attachment.cc |
@@ -25,7 +25,8 @@ MessageAttachment::Type MojoHandleAttachment::GetType() const { |
base::PlatformFile MojoHandleAttachment::TakePlatformFile() { |
mojo::embedder::ScopedPlatformHandle platform_handle; |
MojoResult unwrap_result = mojo::embedder::PassWrappedPlatformHandle( |
- handle_.release().value(), &platform_handle); |
+ handle_.get().value(), &platform_handle); |
+ handle_.reset(); |
if (unwrap_result != MOJO_RESULT_OK) { |
LOG(ERROR) << "Pipe failed to covert handles. Closing: " << unwrap_result; |
return -1; |