Add dependency on //mojo/public/interfaces/bindings:bindings to
//ipc:mojom.

Now that the internal mojo bindings is a component target
(see cr/893655) ipc.mojom can safely import
//mojo/public/interfaces/bindings/native_struct.mojom and depend
on //mojo/public/interfaces/bindings:bindings.

The duplicated SerializedHandle definition in //ipc/ipc.mojom
can now be reverted.

Change-Id: I78288b86bd08ac2af2a75cf83f5b033dde4e4aa4
Reviewed-on: https://chromium-review.googlesource.com/913070
Reviewed-by: Tom Sepez <[email protected]>
Reviewed-by: Ken Rockot <[email protected]>
Commit-Queue: Eve Martin-Jones <[email protected]>
Cr-Commit-Position: refs/heads/master@{#536531}
diff --git a/ipc/ipc_message_pipe_reader.cc b/ipc/ipc_message_pipe_reader.cc
index 1c5c103e..4a8ca8f 100644
--- a/ipc/ipc_message_pipe_reader.cc
+++ b/ipc/ipc_message_pipe_reader.cc
@@ -54,7 +54,7 @@
   TRACE_EVENT_WITH_FLOW0(TRACE_DISABLED_BY_DEFAULT("ipc.flow"),
                          "MessagePipeReader::Send", message->flags(),
                          TRACE_EVENT_FLAG_FLOW_OUT);
-  base::Optional<std::vector<mojom::SerializedHandlePtr>> handles;
+  base::Optional<std::vector<mojo::native::SerializedHandlePtr>> handles;
   MojoResult result = MOJO_RESULT_OK;
   result = ChannelMojo::ReadFromMessageAttachmentSet(message.get(), &handles);
   if (result != MOJO_RESULT_OK)
@@ -86,7 +86,7 @@
 
 void MessagePipeReader::Receive(
     base::span<const uint8_t> data,
-    base::Optional<std::vector<mojom::SerializedHandlePtr>> handles) {
+    base::Optional<std::vector<mojo::native::SerializedHandlePtr>> handles) {
   if (data.empty()) {
     delegate_->OnBrokenDataReceived();
     return;