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

Unified Diff: mash/init/init.cc

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 | « mash/init/init.h ('k') | mash/init/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/init/init.cc
diff --git a/mash/init/init.cc b/mash/init/init.cc
index 7dbf3d329d59fa6338c647687300666270a6dee3..c1d5985942ef8a602c420eb4fa00c9f81aef138d 100644
--- a/mash/init/init.cc
+++ b/mash/init/init.cc
@@ -17,14 +17,14 @@ namespace init {
Init::Init() {}
Init::~Init() {}
-void Init::OnStart(const shell::Identity& identity) {
+void Init::OnStart(const service_manager::Identity& identity) {
connector()->Connect("service:ui");
StartTracing();
StartLogin();
}
-bool Init::OnConnect(const shell::Identity& remote_identity,
- shell::InterfaceRegistry* registry) {
+bool Init::OnConnect(const service_manager::Identity& remote_identity,
+ service_manager::InterfaceRegistry* registry) {
registry->AddInterface<mojom::Init>(this);
return true;
}
@@ -32,8 +32,9 @@ bool Init::OnConnect(const shell::Identity& remote_identity,
void Init::StartService(const mojo::String& name,
const mojo::String& user_id) {
if (user_services_.find(user_id) == user_services_.end()) {
- shell::Connector::ConnectParams params(shell::Identity(name, user_id));
- std::unique_ptr<shell::Connection> connection =
+ service_manager::Connector::ConnectParams params(
+ service_manager::Identity(name, user_id));
+ std::unique_ptr<service_manager::Connection> connection =
connector()->Connect(&params);
connection->SetConnectionLostClosure(
base::Bind(&Init::UserServiceQuit, base::Unretained(this), user_id));
@@ -47,7 +48,7 @@ void Init::StopServicesForUser(const mojo::String& user_id) {
user_services_.erase(it);
}
-void Init::Create(const shell::Identity& remote_identity,
+void Init::Create(const service_manager::Identity& remote_identity,
mojom::InitRequest request) {
init_bindings_.AddBinding(this, std::move(request));
}
« no previous file with comments | « mash/init/init.h ('k') | mash/init/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698