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

Unified Diff: mash/package/mash_packaged_service.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/login/login.cc ('k') | services/ui/clipboard/clipboard_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/package/mash_packaged_service.cc
diff --git a/mash/package/mash_packaged_service.cc b/mash/package/mash_packaged_service.cc
index 817ce47ff5e89d512769773230d4f3b5ee857ea9..051b3d47c9619eecf52dd6ccd6bfd89f469eb9a6 100644
--- a/mash/package/mash_packaged_service.cc
+++ b/mash/package/mash_packaged_service.cc
@@ -16,6 +16,7 @@
#include "mash/task_viewer/task_viewer.h"
#include "services/service_manager/public/cpp/service_context.h"
#include "services/ui/ime/test_ime_driver/test_ime_application.h"
+#include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/service.h"
#if defined(OS_LINUX)
@@ -82,7 +83,7 @@ std::unique_ptr<service_manager::Service> MashPackagedService::CreateService(
return base::WrapUnique(new ash::touch_hud::TouchHudApplication);
if (name == "mash_session")
return base::WrapUnique(new mash::session::Session);
- if (name == "ui")
+ if (name == ui::mojom::kServiceName)
return base::WrapUnique(new ui::Service);
if (name == "quick_launch")
return base::WrapUnique(new mash::quick_launch::QuickLaunch);
« no previous file with comments | « mash/login/login.cc ('k') | services/ui/clipboard/clipboard_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698