Commit 7019475a authored by Luke Sorenson's avatar Luke Sorenson Committed by Commit Bot

Resets mojo typed members before binding new pipes.

Before this fix, we were unable to successfully restart the
Media Perception Service and re-connect over Mojo IPC.

Bug: 1129628
Test: Verified on-device this fixes the bug.
Change-Id: I3eb60d99320c41ff2aef357ed9ae83a18d9d715a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2422183Reviewed-by: default avatarKen Rockot <rockot@google.com>
Reviewed-by: default avatarLuke Sorenson <lasoren@chromium.org>
Commit-Queue: Luke Sorenson <lasoren@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808956}
parent 783645d2
......@@ -413,6 +413,7 @@ void MediaPerceptionAPIManager::SendMojoInvitation(
base::kNullProcessHandle,
channel.TakeLocalEndpoint());
media_perception_service_.reset();
media_perception_service_.Bind(
mojo::PendingRemote<
chromeos::media_perception::mojom::MediaPerceptionService>(
......@@ -468,6 +469,7 @@ void MediaPerceptionAPIManager::OnBootstrapMojoConnection(
return;
}
media_perception_controller_.reset();
auto controller_receiver =
media_perception_controller_.BindNewPipeAndPassReceiver();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment