Index: services/ui/ime/test_ime_driver/main.cc |
diff --git a/services/ui/ime/test_ime_driver/main.cc b/services/ui/ime/test_ime_driver/main.cc |
index 795119fae475224c2aec838161eb6557c8a38013..67a38120ba2b2444be426924e0cecd1c2dda9f81 100644 |
--- a/services/ui/ime/test_ime_driver/main.cc |
+++ b/services/ui/ime/test_ime_driver/main.cc |
@@ -3,37 +3,10 @@ |
// found in the LICENSE file. |
#include "services/shell/public/c/main.h" |
-#include "services/shell/public/cpp/connector.h" |
-#include "services/shell/public/cpp/service.h" |
#include "services/shell/public/cpp/service_runner.h" |
-#include "services/ui/ime/test_ime_driver/test_ime_driver.h" |
- |
-namespace ui { |
-namespace test { |
- |
-class TestIME : public shell::Service { |
- public: |
- TestIME() {} |
- ~TestIME() override {} |
- |
- private: |
- // shell::Service: |
- void OnStart(const shell::Identity& identity) override { |
- mojom::IMEDriverPtr ime_driver_ptr; |
- new TestIMEDriver(GetProxy(&ime_driver_ptr)); |
- |
- ui::mojom::IMERegistrarPtr ime_registrar; |
- connector()->ConnectToInterface("mojo:ui", &ime_registrar); |
- ime_registrar->RegisterDriver(std::move(ime_driver_ptr)); |
- } |
- |
- DISALLOW_COPY_AND_ASSIGN(TestIME); |
-}; |
- |
-} // namespace test |
-} // namespace ui |
+#include "services/ui/ime/test_ime_driver/test_ime_application.h" |
MojoResult ServiceMain(MojoHandle service_request_handle) { |
- shell::ServiceRunner runner(new ui::test::TestIME); |
+ shell::ServiceRunner runner(new ui::test::TestIMEApplication); |
return runner.Run(service_request_handle); |
} |