summaryrefslogtreecommitdiff
path: root/chromium/content/browser/presentation/presentation_service_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/presentation/presentation_service_impl.cc')
-rw-r--r--chromium/content/browser/presentation/presentation_service_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/content/browser/presentation/presentation_service_impl.cc b/chromium/content/browser/presentation/presentation_service_impl.cc
index 3d4f1aecce1..1d16ac93f16 100644
--- a/chromium/content/browser/presentation/presentation_service_impl.cc
+++ b/chromium/content/browser/presentation/presentation_service_impl.cc
@@ -118,8 +118,8 @@ std::unique_ptr<PresentationServiceImpl> PresentationServiceImpl::Create(
void PresentationServiceImpl::Bind(
mojo::PendingReceiver<blink::mojom::PresentationService> receiver) {
- presentation_service_receiver_.Bind(std::move(receiver));
- presentation_service_receiver_.set_disconnect_handler(base::BindOnce(
+ presentation_service_receivers_.Add(this, std::move(receiver));
+ presentation_service_receivers_.set_disconnect_handler(base::BindRepeating(
&PresentationServiceImpl::OnConnectionError, base::Unretained(this)));
}
@@ -497,7 +497,7 @@ void PresentationServiceImpl::Reset() {
pending_reconnect_presentation_cbs_.clear();
- presentation_service_receiver_.reset();
+ presentation_service_receivers_.Clear();
presentation_controller_remote_.reset();
presentation_receiver_remote_.reset();
}