Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1442)

Unified Diff: content/renderer/render_thread_impl_browsertest.cc

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_thread_impl_browsertest.cc
diff --git a/content/renderer/render_thread_impl_browsertest.cc b/content/renderer/render_thread_impl_browsertest.cc
index c1562f8abe4e36cfcdeee2fe7160c7772da2535d..4ff3321d0171daaa6871e7d50948bbd935a8a797 100644
--- a/content/renderer/render_thread_impl_browsertest.cc
+++ b/content/renderer/render_thread_impl_browsertest.cc
@@ -190,13 +190,13 @@ class RenderThreadImplBrowserTest : public testing::Test {
io_task_runner));
mojo::MessagePipe pipe;
- IPC::mojom::ChannelBootstrapPtr channel_bootstrap;
- child_connection_->GetRemoteInterfaces()->GetInterface(&channel_bootstrap);
+ child_connection_->BindInterface(IPC::mojom::ChannelBootstrap::Name_,
+ std::move(pipe.handle1));
- channel_ = IPC::ChannelProxy::Create(
- IPC::ChannelMojo::CreateServerFactory(
- channel_bootstrap.PassInterface().PassHandle(), io_task_runner),
- nullptr, io_task_runner);
+ channel_ =
+ IPC::ChannelProxy::Create(IPC::ChannelMojo::CreateServerFactory(
+ std::move(pipe.handle0), io_task_runner),
+ nullptr, io_task_runner);
mock_process_.reset(new MockRenderProcess);
test_task_counter_ = make_scoped_refptr(new TestTaskCounter());

Powered by Google App Engine
This is Rietveld 408576698