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

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

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « content/browser/mojo/browser_shell_connection.h ('k') | content/browser/mojo/mojo_app_connection_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/browser_shell_connection.cc
diff --git a/content/browser/mojo/browser_shell_connection.cc b/content/browser/mojo/browser_shell_connection.cc
index 8fb9121389cb43308cd8bbddc9777e3688cf180c..5b762a2a88af00f68296dced26e5187e697a6766 100644
--- a/content/browser/mojo/browser_shell_connection.cc
+++ b/content/browser/mojo/browser_shell_connection.cc
@@ -10,12 +10,12 @@
namespace content {
BrowserShellConnection::BrowserShellConnection(
- mojo::shell::mojom::ShellClientRequest request)
- : shell_connection_(new mojo::ShellConnection(this, std::move(request))) {}
+ shell::mojom::ShellClientRequest request)
+ : shell_connection_(new shell::ShellConnection(this, std::move(request))) {}
BrowserShellConnection::~BrowserShellConnection() {}
-mojo::Connector* BrowserShellConnection::GetConnector() {
+shell::Connector* BrowserShellConnection::GetConnector() {
return shell_connection_->connector();
}
@@ -30,18 +30,17 @@ void BrowserShellConnection::AddEmbeddedApplication(
DCHECK(result.second);
}
-bool BrowserShellConnection::AcceptConnection(mojo::Connection* connection) {
+bool BrowserShellConnection::AcceptConnection(shell::Connection* connection) {
std::string remote_app = connection->GetRemoteIdentity().name();
if (remote_app == "mojo:shell") {
// Only expose the SCF interface to the shell.
- connection->AddInterface<mojo::shell::mojom::ShellClientFactory>(this);
+ connection->AddInterface<shell::mojom::ShellClientFactory>(this);
return true;
}
// Allow connections from the root browser application.
if (remote_app == kBrowserMojoApplicationName &&
- connection->GetRemoteIdentity().user_id() ==
- mojo::shell::mojom::kRootUserID)
+ connection->GetRemoteIdentity().user_id() == shell::mojom::kRootUserID)
return true;
// Reject all other connections to this application.
@@ -49,13 +48,13 @@ bool BrowserShellConnection::AcceptConnection(mojo::Connection* connection) {
}
void BrowserShellConnection::Create(
- mojo::Connection* connection,
- mojo::shell::mojom::ShellClientFactoryRequest request) {
+ shell::Connection* connection,
+ shell::mojom::ShellClientFactoryRequest request) {
factory_bindings_.AddBinding(this, std::move(request));
}
void BrowserShellConnection::CreateShellClient(
- mojo::shell::mojom::ShellClientRequest request,
+ shell::mojom::ShellClientRequest request,
const mojo::String& name) {
auto it = embedded_apps_.find(name);
if (it != embedded_apps_.end())
« no previous file with comments | « content/browser/mojo/browser_shell_connection.h ('k') | content/browser/mojo/mojo_app_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698