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

Unified Diff: mash/login/login.cc

Issue 2503063003: Add service name constant for UI service. (Closed)
Patch Set: . Created 4 years, 1 month 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.cc » ('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 fa81b53a280d09c0bf793f5d60fc526c30579b53..561861c60f5858290bd37ef9f17227b4e9624cc1 100644
--- a/mash/login/login.cc
+++ b/mash/login/login.cc
@@ -23,6 +23,7 @@
#include "services/service_manager/public/cpp/service_context.h"
#include "services/tracing/public/cpp/provider.h"
#include "services/ui/public/cpp/property_type_converters.h"
+#include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/user_access_manager.mojom.h"
#include "services/ui/public/interfaces/window_manager.mojom.h"
#include "ui/views/background.h"
@@ -157,8 +158,8 @@ class Login : public service_manager::Service,
context()->connector(), context()->identity(),
"views_mus_resources.pak");
- context()->connector()->ConnectToInterface(
- "ui", &user_access_manager_);
+ context()->connector()->ConnectToInterface(ui::mojom::kServiceName,
+ &user_access_manager_);
user_access_manager_->SetActiveUser(context()->identity().user_id());
}
« no previous file with comments | « mash/init/init.cc ('k') | mash/package/mash_packaged_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698