Commit 2820aae3 authored by Julie Jeongeun Kim's avatar Julie Jeongeun Kim Committed by Commit Bot

Clean up old Mojo types for mojom::MediaController

This CL cleans up old Mojo types for mojom::MediaController
with using Receiver instead of Binding.

Bug: 955171
Change-Id: Ia89a66fbf407f9be492db856237b0b8643015f8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1923974Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@google.com>
Commit-Queue: Julie Kim <jkim@igalia.com>
Cr-Commit-Position: refs/heads/master@{#717491}
parent 54a9da06
...@@ -217,7 +217,7 @@ TestMediaController::~TestMediaController() = default; ...@@ -217,7 +217,7 @@ TestMediaController::~TestMediaController() = default;
mojo::Remote<mojom::MediaController> mojo::Remote<mojom::MediaController>
TestMediaController::CreateMediaControllerRemote() { TestMediaController::CreateMediaControllerRemote() {
mojo::Remote<mojom::MediaController> remote; mojo::Remote<mojom::MediaController> remote;
binding_.Bind(remote.BindNewPipeAndPassReceiver()); receiver_.Bind(remote.BindNewPipeAndPassReceiver());
return remote; return remote;
} }
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#include "base/component_export.h" #include "base/component_export.h"
#include "base/optional.h" #include "base/optional.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/bindings/interface_ptr_set.h"
#include "mojo/public/cpp/bindings/receiver.h" #include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote_set.h" #include "mojo/public/cpp/bindings/remote_set.h"
#include "services/media_session/public/mojom/media_controller.mojom.h" #include "services/media_session/public/mojom/media_controller.mojom.h"
...@@ -193,7 +191,7 @@ class COMPONENT_EXPORT(MEDIA_SESSION_TEST_SUPPORT_CPP) TestMediaController ...@@ -193,7 +191,7 @@ class COMPONENT_EXPORT(MEDIA_SESSION_TEST_SUPPORT_CPP) TestMediaController
mojo::RemoteSet<mojom::MediaControllerObserver> observers_; mojo::RemoteSet<mojom::MediaControllerObserver> observers_;
mojo::Binding<mojom::MediaController> binding_{this}; mojo::Receiver<mojom::MediaController> receiver_{this};
DISALLOW_COPY_AND_ASSIGN(TestMediaController); DISALLOW_COPY_AND_ASSIGN(TestMediaController);
}; };
......
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