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

Unified Diff: ash/mus/window_manager_application.cc

Issue 2435153004: Change Service contract to pass ServiceInfo instead of Identity (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 | « ash/mus/window_manager_application.h ('k') | ash/touch_hud/mus/touch_hud_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/window_manager_application.cc
diff --git a/ash/mus/window_manager_application.cc b/ash/mus/window_manager_application.cc
index 52c3bfa8353664e97aed7026f8f7c88642fa4403..338da2cf8de72d69ef5ee54dab84316dcd8548f2 100644
--- a/ash/mus/window_manager_application.cc
+++ b/ash/mus/window_manager_application.cc
@@ -130,7 +130,7 @@ void WindowManagerApplication::ShutdownComponents() {
}
void WindowManagerApplication::OnStart(
- const service_manager::Identity& identity) {
+ const service_manager::ServiceInfo& info) {
aura_init_.reset(new views::AuraInit(connector(), "ash_mus_resources.pak",
"ash_mus_resources_200.pak"));
gpu_service_ = ui::GpuService::Create(connector());
@@ -142,7 +142,7 @@ void WindowManagerApplication::OnStart(
MaterialDesignController::Initialize();
- tracing_.Initialize(connector(), identity.name());
+ tracing_.Initialize(connector(), info.identity.name());
std::unique_ptr<ui::WindowTreeClient> window_tree_client =
base::MakeUnique<ui::WindowTreeClient>(window_manager_.get(),
@@ -157,15 +157,15 @@ void WindowManagerApplication::OnStart(
}
bool WindowManagerApplication::OnConnect(
- const service_manager::Identity& remote_identity,
+ const service_manager::ServiceInfo& remote_info,
service_manager::InterfaceRegistry* registry) {
// Register services used in both classic ash and mash.
mojo_interface_factory::RegisterInterfaces(
registry, base::ThreadTaskRunnerHandle::Get());
registry->AddInterface<ui::mojom::AcceleratorRegistrar>(this);
- if (remote_identity.name() == "service:mash_session") {
- connector()->ConnectToInterface(remote_identity, &session_);
+ if (remote_info.identity.name() == "service:mash_session") {
+ connector()->ConnectToInterface(remote_info.identity, &session_);
session_->AddScreenlockStateListener(
screenlock_state_listener_binding_.CreateInterfacePtrAndBind());
}
« no previous file with comments | « ash/mus/window_manager_application.h ('k') | ash/touch_hud/mus/touch_hud_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698