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

Unified Diff: services/ui/service.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 | « services/ui/service.h ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/service.cc
diff --git a/services/ui/service.cc b/services/ui/service.cc
index c7190433b8f67aaf9d4b768cf0a7a06558d76d98..f85e40c1bc696cbdc036df7464ec4cb4b1ff1a2a 100644
--- a/services/ui/service.cc
+++ b/services/ui/service.cc
@@ -135,9 +135,9 @@ void Service::AddUserIfNecessary(
window_server_->user_id_tracker()->AddUserId(remote_identity.user_id());
}
-void Service::OnStart(const service_manager::Identity& identity) {
+void Service::OnStart(const service_manager::ServiceInfo& info) {
base::PlatformThread::SetName("mus");
- tracing_.Initialize(connector(), identity.name());
+ tracing_.Initialize(connector(), info.identity.name());
TRACE_EVENT0("mus", "Service::Initialize started");
test_config_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
@@ -194,7 +194,7 @@ void Service::OnStart(const service_manager::Identity& identity) {
ime_server_.Init(connector());
}
-bool Service::OnConnect(const service_manager::Identity& remote_identity,
+bool Service::OnConnect(const service_manager::ServiceInfo& remote_info,
service_manager::InterfaceRegistry* registry) {
registry->AddInterface<mojom::AccessibilityManager>(this);
registry->AddInterface<mojom::Clipboard>(this);
« no previous file with comments | « services/ui/service.h ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698