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

Unified Diff: mash/init/init.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
Index: mash/init/init.cc
diff --git a/mash/init/init.cc b/mash/init/init.cc
index 09a1ca387f09faab4d247698fafcccad88b05ed6..0194457955729ea9662a3ff9fe48aeca826aa119 100644
--- a/mash/init/init.cc
+++ b/mash/init/init.cc
@@ -12,6 +12,7 @@
#include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/interface_registry.h"
#include "services/service_manager/public/cpp/service_context.h"
+#include "services/ui/public/interfaces/constants.mojom.h"
namespace mash {
namespace init {
@@ -20,7 +21,7 @@ Init::Init() {}
Init::~Init() {}
void Init::OnStart() {
- context()->connector()->Connect("ui");
+ context()->connector()->Connect(ui::mojom::kServiceName);
James Cook 2016/11/16 00:46:02 I like this. It's clear to me that it's connecting
StartTracing();
StartLogin();
}

Powered by Google App Engine
This is Rietveld 408576698