Commit 3a4a099f authored by Julie Jeongeun Kim's avatar Julie Jeongeun Kim Committed by Commit Bot

Clean up old Mojo type for mojom::ChromeRenderFrame

This CL cleans up old mojo types for mojom::ChromeRenderFrame
using PendingAssociatedReceiver and AssociatedReceiver.

Bug: 955171
Change-Id: I895ad427e08292c8f671fef3965eddbabd9f0003
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1902184Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Reviewed-by: default avatarKen Rockot <rockot@google.com>
Commit-Queue: Julie Kim <jkim@igalia.com>
Cr-Commit-Position: refs/heads/master@{#713708}
parent 21a947f9
......@@ -24,7 +24,8 @@
#include "content/public/browser/site_instance.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/web_contents_tester.h"
#include "mojo/public/cpp/bindings/associated_binding.h"
#include "mojo/public/cpp/bindings/associated_receiver.h"
#include "mojo/public/cpp/bindings/pending_associated_receiver.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_provider.h"
#include "third_party/blink/public/common/manifest/manifest.h"
......@@ -52,8 +53,8 @@ class FakeChromeRenderFrame
}
void Bind(mojo::ScopedInterfaceEndpointHandle handle) {
binding_.Bind(
mojo::AssociatedInterfaceRequest<ChromeRenderFrame>(std::move(handle)));
receiver_.Bind(
mojo::PendingAssociatedReceiver<ChromeRenderFrame>(std::move(handle)));
}
// Set |web_app_info| to respond on |GetWebApplicationInfo|.
......@@ -68,7 +69,7 @@ class FakeChromeRenderFrame
private:
WebApplicationInfo web_app_info_;
mojo::AssociatedBinding<chrome::mojom::ChromeRenderFrame> binding_{this};
mojo::AssociatedReceiver<chrome::mojom::ChromeRenderFrame> receiver_{this};
};
class WebAppDataRetrieverTest : public ChromeRenderViewHostTestHarness {
......
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