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

Unified Diff: mash/login/login.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 | « mash/init/init.cc ('k') | mash/package/mash_packaged_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/login/login.cc
diff --git a/mash/login/login.cc b/mash/login/login.cc
index bb856d9a99c3f5b90bd321e10d991902b9241622..6565aa609c468cb8b758cbea4f536fa067f2664f 100644
--- a/mash/login/login.cc
+++ b/mash/login/login.cc
@@ -146,17 +146,17 @@ class Login : public service_manager::Service,
private:
// service_manager::Service:
- void OnStart(const service_manager::Identity& identity) override {
- identity_ = identity;
- tracing_.Initialize(connector(), identity.name());
+ void OnStart(const service_manager::ServiceInfo& info) override {
+ identity_ = info.identity;
+ tracing_.Initialize(connector(), identity_.name());
aura_init_.reset(
new views::AuraInit(connector(), "views_mus_resources.pak"));
connector()->ConnectToInterface("service:ui", &user_access_manager_);
- user_access_manager_->SetActiveUser(identity.user_id());
+ user_access_manager_->SetActiveUser(identity_.user_id());
}
- bool OnConnect(const service_manager::Identity& remote_identity,
+ bool OnConnect(const service_manager::ServiceInfo& remote_info,
service_manager::InterfaceRegistry* registry) override {
registry->AddInterface<mojom::Login>(this);
return true;
« no previous file with comments | « mash/init/init.cc ('k') | mash/package/mash_packaged_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698