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

Unified Diff: services/ui/ime/test_ime_driver/test_ime_application.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 | « services/ui/ime/ime_unittest.cc ('k') | services/ui/public/cpp/gpu_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ime/test_ime_driver/test_ime_application.cc
diff --git a/services/ui/ime/test_ime_driver/test_ime_application.cc b/services/ui/ime/test_ime_driver/test_ime_application.cc
index 5c7cfec50e97f66d21d94a8191163e2dc9ac3010..ecff17bcf94ec37c3812cc92f7837133c65bf750 100644
--- a/services/ui/ime/test_ime_driver/test_ime_application.cc
+++ b/services/ui/ime/test_ime_driver/test_ime_application.cc
@@ -8,6 +8,7 @@
#include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/service_context.h"
#include "services/ui/ime/test_ime_driver/test_ime_driver.h"
+#include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/ime.mojom.h"
namespace ui {
@@ -23,7 +24,8 @@ void TestIMEApplication::OnStart() {
GetProxy(&ime_driver_ptr));
ui::mojom::IMERegistrarPtr ime_registrar;
- context()->connector()->ConnectToInterface("ui", &ime_registrar);
+ context()->connector()->ConnectToInterface(ui::mojom::kServiceName,
+ &ime_registrar);
ime_registrar->RegisterDriver(std::move(ime_driver_ptr));
}
« no previous file with comments | « services/ui/ime/ime_unittest.cc ('k') | services/ui/public/cpp/gpu_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698