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

Unified Diff: content/renderer/render_thread_impl_browsertest.cc

Issue 2680973006: Mojo EDK: Add safe process connection API (Closed)
Patch Set: . Created 3 years, 10 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
« no previous file with comments | « content/public/common/child_process_host.h ('k') | mojo/edk/embedder/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 af28029cb823213f3492c6c02e6d38ba98f8ae11..6331ecebd38617e6f48be229f43d42841c310fe5 100644
--- a/content/renderer/render_thread_impl_browsertest.cc
+++ b/content/renderer/render_thread_impl_browsertest.cc
@@ -44,6 +44,7 @@
#include "ipc/ipc.mojom.h"
#include "ipc/ipc_channel_mojo.h"
#include "mojo/edk/embedder/embedder.h"
+#include "mojo/edk/embedder/pending_process_connection.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/scheduler/renderer/renderer_scheduler.h"
#include "ui/gfx/buffer_format_util.h"
@@ -179,8 +180,9 @@ class RenderThreadImplBrowserTest : public testing::Test {
InitializeMojo();
shell_context_.reset(new TestServiceManagerContext);
+ mojo::edk::PendingProcessConnection process_connection;
child_connection_.reset(new ChildConnection(
- mojom::kRendererServiceName, "test", mojo::edk::GenerateRandomToken(),
+ mojom::kRendererServiceName, "test", &process_connection,
ServiceManagerConnection::GetForProcess()->GetConnector(),
io_task_runner));
« no previous file with comments | « content/public/common/child_process_host.h ('k') | mojo/edk/embedder/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698