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

Unified Diff: mash/login/login.cc

Issue 2509853002: Convert //mash to define service names in mojom (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/public/interfaces/constants.mojom ('k') | mash/login/public/interfaces/BUILD.gn » ('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 561861c60f5858290bd37ef9f17227b4e9624cc1..e428075a6691de27c1fc5823bee27dece1944759 100644
--- a/mash/login/login.cc
+++ b/mash/login/login.cc
@@ -13,6 +13,7 @@
#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
+#include "mash/init/public/interfaces/constants.mojom.h"
#include "mash/init/public/interfaces/init.mojom.h"
#include "mash/login/public/interfaces/login.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
@@ -145,7 +146,8 @@ class Login : public service_manager::Service,
void LoginAs(const std::string& user_id) {
user_access_manager_->SetActiveUser(user_id);
mash::init::mojom::InitPtr init;
- context()->connector()->ConnectToInterface("mash_init", &init);
+ context()->connector()->ConnectToInterface(init::mojom::kServiceName,
+ &init);
init->StartService("mash_session", user_id);
}
« no previous file with comments | « mash/init/public/interfaces/constants.mojom ('k') | mash/login/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698