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

Unified Diff: content/browser/mojo/mojo_child_connection.cc

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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/browser/mojo/mojo_child_connection.h ('k') | content/browser/mojo/mojo_shell_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_child_connection.cc
diff --git a/content/browser/mojo/mojo_child_connection.cc b/content/browser/mojo/mojo_child_connection.cc
index 896d8f5aafc4b976d5194801dc3ac0658f2cc90d..cb7ea98565307eeacde7f58a9dda8425a2592ecc 100644
--- a/content/browser/mojo/mojo_child_connection.cc
+++ b/content/browser/mojo/mojo_child_connection.cc
@@ -12,7 +12,7 @@
#include "mojo/public/cpp/system/message_pipe.h"
#include "services/shell/public/cpp/connector.h"
#include "services/shell/public/cpp/identity.h"
-#include "services/shell/public/interfaces/shell_client.mojom.h"
+#include "services/shell/public/interfaces/service.mojom.h"
namespace content {
@@ -20,20 +20,20 @@ MojoChildConnection::MojoChildConnection(const std::string& application_name,
const std::string& instance_id,
const std::string& child_token,
shell::Connector* connector)
- : shell_client_token_(mojo::edk::GenerateRandomToken()) {
- mojo::ScopedMessagePipeHandle shell_client_pipe =
- mojo::edk::CreateParentMessagePipe(shell_client_token_, child_token);
+ : service_token_(mojo::edk::GenerateRandomToken()) {
+ mojo::ScopedMessagePipeHandle service_pipe =
+ mojo::edk::CreateParentMessagePipe(service_token_, child_token);
- shell::mojom::ShellClientPtr client;
- client.Bind(mojo::InterfacePtrInfo<shell::mojom::ShellClient>(
- std::move(shell_client_pipe), 0u));
+ shell::mojom::ServicePtr service;
+ service.Bind(mojo::InterfacePtrInfo<shell::mojom::Service>(
+ std::move(service_pipe), 0u));
shell::mojom::PIDReceiverRequest pid_receiver_request =
GetProxy(&pid_receiver_);
shell::Identity target(application_name, shell::mojom::kInheritUserID,
instance_id);
shell::Connector::ConnectParams params(target);
- params.set_client_process_connection(std::move(client),
+ params.set_client_process_connection(std::move(service),
std::move(pid_receiver_request));
// In some unit testing scenarios a null connector is passed.
« no previous file with comments | « content/browser/mojo/mojo_child_connection.h ('k') | content/browser/mojo/mojo_shell_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698