Commit 9556739c authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

Clean up old Mojo uses of CoordinatorConnector interface

This CL converts mojom::CoordinatorConnectorRequest to
mojo::PendingReceiver<>.

Bug: 955171
Change-Id: I2d14476598074daafae0f45649ace88ce08c14e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1895266
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Reviewed-by: default avatarKen Buchanan <kenrb@chromium.org>
Reviewed-by: default avatarOksana Zhuravlova <oksamyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712866}
parent 5d4b0304
......@@ -195,6 +195,7 @@
#include "media/media_buildflags.h"
#include "media/mojo/services/video_decode_perf_history.h"
#include "media/webrtc/webrtc_switches.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/system/platform_handle.h"
#include "net/url_request/url_request_context_getter.h"
......@@ -2080,10 +2081,11 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
registry.get(),
base::BindRepeating(
[](RenderProcessHostImpl* host,
memory_instrumentation::mojom::CoordinatorConnectorRequest
request) {
mojo::PendingReceiver<
memory_instrumentation::mojom::CoordinatorConnector>
receiver) {
host->coordinator_connector_receiver_.reset();
host->coordinator_connector_receiver_.Bind(std::move(request));
host->coordinator_connector_receiver_.Bind(std::move(receiver));
if (!host->GetProcess().IsValid()) {
// We only want to accept messages from this interface once we
// have a known PID.
......
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